Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
Glvt102 11
3 years ago

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

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

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()
0
Well, not really, this script just deletes npc after death, but the "death animation" has time to play (At least for my npc) Glvt102 11 — 3y
0
Give Me A Second. Brioche_Noodle 45 — 3y
0
I Added The Animation Script Brioche_Noodle 45 — 3y
Ad

Answer this question