Script isn't detecting when humanoid dies

Humanoid.Died is there to save you

He has already tried it. It doesn’t work.

Like HardNinjaGreatorDev said, it’s a local script, which is probably what is causing the issue.

it being a localscript isn’t the issue, I just tried it, and the Died event works flawlessly

then something else is going on; we need more information.

Guys the error is not on the CHECK code, its on the TOOL that kills the NPC because the tool probably uses a local script to kill the npc

the code he posted has nothing to do with the error that the NPC hasn’t died, the code he posted might work fine just like it is, but it never finds the humanoid:died because the code that sets Humanoid.Health = 0 (which kills the NPC) is made in client side and not server side, if you want to kill the NPC from a local way, you will need to use RemoteEvents to change the health of the NPC trough another script located somewhere server sided

But he is not trying to kill the NPC locally.

We don’t know that, i assume it’s that because it doesn’t make sense for it not to work elsewise, maybe its a premade tool he uses and it messes up something, but it’s definitely not the check’s fault, atleast with the code i did provide there’s not chance it’s not working. The only reason it would not work its because he kills the npc locally

From what we know, NPCS kill each other. which are most likely server-sided.

Like I said, we need more information.

I fixed it by using a remote event in replicated storage activated by a script in the humanoid rather than putting the remote event inside the humanoid.

1 Like

Why didn’t you tell us where the event was from the start? Anyway, good thing you found out.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.