I know there are questions like this out there, but none of them answer what I'm confused about. I even looked on the developer websites to see if it was possible, but it was not explained well enough.
I'm trying to make a script that when a humanoid's health reaches 0, then the model the humanoid is in gets deleted. I've tried .Died but it doesnt seem to work in this case because when I use it it instantly deletes the model, even before the health is 0 and the head is disconnected from the torso. I need to know how to tell when the humanoid has died.
local humanoid = script.Parent.Humanoid
if humanoid.Health == 0 then
script.Parent:Destroy()
end
If the way the script is formulated is wrong please point it out.

4 comments
Where and how would you add the wait?
add the wait() before the 'Destroy()' line, maybe about 5 seconds.
Thanks! It worked.
a