Hello devs, I am working on jump scare but wan’t it to appear only when player is killed by a NPC, is there a way to check that?
Depends on how the NPC will kill them really.
If it is like a knife then you could detect when it is touches the player and then do the jump scare of who it touched.
Basically what ever way the NPC kills them just add something in there about a jump scare.
It’s bad, cuz I want it when player dies, not when player touches hitbox.
Then could you not do it so when the player touches the hitbox it checks the humanoid health level and using a if statement if the humanoid health level is 0 or below (don’t think it can go below though) it will then do the jump scare.
Cuz then it detects when the player is touched by the hitbox but only runs the jump scare if the player is dead or in other words health is 0.