Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do i make an npc to just disappear after death?

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

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()

3 comments

0

Well, not really, this script just deletes npc after death, but the "death animation" has time to play (At least for my npc)

0

Give Me A Second.

0

I Added The Animation Script

This discussion is preserved as it was. New answers, comments, and votes are closed.