Ive tried a few things but nothing worked?

2 comments

0

What did you try

0

wait()

local Humanoid = script.Parent.Humanoid

Humanoid.BreakJointsOnDeath = false

local DA = Instance.new("Animation")

DA.AnimationId = "rbxassetid://" --- Add a Id with This

local DeathAnimation = Humanoid:LoadAnimation(DA)

Humanoid.HealthChanged:Connect(function(Health)

if Health <= 0 then

    print("Died")

    script.Parent.HumanoidRootPart.Anchored = true

    Deat