Okay so i got this working local script for an idle animation that is for a tool. The animation completely works as intended, the only problem is that after a second or two the character returns back to the default idle. I think the problem is bad looping but i have no idea how to loop it properly. The looping i tried keeps resulting in the animation just straightup not working. I’m new to coding so i think i might just be missing something?
Anyways basically, how do i loop this idle animation for a tool?
01 | local Human = script.Parent |
05 | Human.Equipped:connect( function () |
07 | local idle = script.Parent.Parent.Humanoid:LoadAnimation(script.Idle) |
09 | idle.Priority = Enum.AnimationPriority.Action |
15 | Human.Unequipped:connect( function () |