I want this script that can be like when the npc is going to die pretty much the server can tell if the npc is going to die so like when i hit the npc and he goes flying the server can tell so i can pasue the game for a second to show that the npc is going to die
if you dont understand like smash bros ultimate if they are at a high percentage and get hit the game will have a kill zoom
i think this might work:
--put this script inside the npc while true do wait() if script.Parent.Humanoid.Health == 0 then print("The NPC has died!") script:Destroy() end end
Closed as Not Constructive by ScuffedAI, moo1210, jediplocoon, and Ziffixture
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?