My animation doesn't loop on idle when the tool is equipped. I don't know why because I've set it on the highest priority of Action, but after 2 - 4 seconds it goes back to its default animation after being equipped.
Heres my code:
local tool = script.Parent
local Animations = script.Parent.Animations
tool.Equipped:Connect(function()
local animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Animations.SwordIdle)
animation:Play()
end)

3 comments
Thanks for the help.
Now the animation wont stop, any ideas on how to fix that?
He said when the player un-equips the tool, do animation:Stop()