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

[SOLVED] Why isn't the animation stopping when I Unequip a tool?

Asked by 5 years ago
Edited 5 years ago

Why isn't the animation stopping when I Unequip a tool? Thanks for helping!

script.Parent.Equipped:Connect(function()
    local idle = script.Parent.Parent.Humanoid:LoadAnimation(script.Idle)
    idle:Play()
end)


script.Parent.Unequipped:Connect(function()
    local idle = script.Parent.Parent.Humanoid:LoadAnimation(script.Idle)
    idle:Stop()
end)

Answer this question