Nextbots- Avoid calling OnInjured when killed.

Wondering if there’s a way for a bot to tell when NOT to call OnInjured.

I have two different sounds, one that plays when the bot is hurt, and one that plays when it’s killed. I want to avoid both being played at the same time when my bot is killed.
Since the bot needs to take damage in order to die, it’s a little hard to come up with something.
Unless i’m just missing something.

Just use an if statement in the on injured which checks if it is dead

if damage < bot:Health() then play sound else return end