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:
1 | local tool = script.Parent |
2 | local Animations = script.Parent.Animations |
3 |
4 | tool.Equipped:Connect( function () |
5 | local animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Animations.SwordIdle) |
6 | animation:Play() |
7 | end ) |
In the animation editor when creating your animation there is a button called "Loop" check that to on and it should loop then when you un equip the tool do animation:Stop()