#no death animation script doesnt work for me either IT repeats and then i die or im stuck in it
6 messages · Page 1 of 1 (latest)
wait()
local Humanoid = script.Parent.Humanoid
Humanoid.BreakJointsOnDeath = false
local DA = Instance.new("Animation")
DA.AnimationId = "rbxassetid://17795538864"
local DeathAnimation = Humanoid:LoadAnimation(DA)
Humanoid.HealthChanged:Connect(function(Health)
if Health <= 0 then
print("died")
script.Parent.HumanoidRootPart.Anchored = true
DeathAnimation:Play()
wait(2)
script.Parent:Destroy()
end
end)
i forgor code
mb
Plis help