How do i make an npc respawn after 5 seconds

Does it print the statements? j

only the first one (text text)

Try removing the wait() again.

the death animation does not play anymore and it intantly respawns

Does it still respawn tho? (text)

yes but the death animation does not play and it respawns instant

Try adding wait(5) again, maybe it’ll work now? idk

nope doesnt work (text text text)

I have no idea why it isn’t working then.

Animation.Stopped:Wait()
this will let the animation finish then respawn the character.

Ah, Because You waited too long. Died function activates when you die and will only last until the whole character removes itself. Wait(5) is too long and before it manage to wait that amount of time, the character is already gone and the script is gone too. That is why when you remove the wait(5) it worked but of course no animation as it respawns and destroys the dead character right after it dies.

no time to provide solution but with that, try and solve it

2 Likes

you can try remote event(when a npc died will fireserver) when it get the server it will wait 5 sec then respawn by using clone