local UIP = game:GetService("UserInputService")
animation1 = Instance.new("Animation", script.Parent)
script.Parent.Equipped:Connect(function()
animation1.AnimationId = "rbxassetid://"..3358846513
local animationtrack1 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(animation1)
animationtrack1:Play()
end)
script.Parent.Unequipped:Connect(function()
animation1.AnimationId = "rbxassetid://"..3358846513
local animationtrack1 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(animation1)
animationtrack1:Stop()
end)
When the tool is unequipped, the script is supposed to stop the animation from playing, but it just keeps looping. Why?

1 comment
Maybe make sure that looped is false before it is stopped?