```lua anim = script.Parent.Parent.Parent.Humanoid:LoadAnimation(script.Parent)
while true do anim:Play() wait(3) end ```
So far, this is the code I came up with. Theoretically, this should run an animation, wait 1 second (the anim is 2 seconds), then loop, but doesn't run anything. Putting a print()
statement in the loop prints, but the anim doesn't play.
You can simply add looping animation in studio when creating an animation.
!
https://gyazo.com/8ccc3691861c3916858e2e14c28ffdf5
Now you don't have to use the while true do loop and you can simply stop the animation with :Stop()
Hope this helped you!
Good luck!