You know, so that it does not disintegrate into parts, but at the same time does not fall to the ground like a sarcophagus, so that it just disappears instantly upon death
COMMUNITY QUESTION
How do i make an npc to just disappear after death?
1 answer
Very Easy.
local NPC = -- NPC
local Animation = -- Anim
local AnimTrack = NPC.Humanoid:LoadAnimation(Animation)
if NPC.Humanoid.Health < 0 then -- Or ==
shockAnimationTrack:Play()
shockAnimationTrack:Ended:Wait()
NPC:Destroy()
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Well, not really, this script just deletes npc after death, but the "death animation" has time to play (At least for my npc)
Give Me A Second.
I Added The Animation Script