[SOLVED]: How to give a dummy an animation and have it always play

Hello, I have a question, how do I make a dummy that keeps on playing an animation always, and never ends. (basically a infinite loop)
GIF:

not the real animation…

I want it to loop, but not in studio, but in the game while a player is playing. Any help?

Thanks for reading!

I want it to loop, but not in studio, but in the game while a player is playing. Any help?

Thanks for reading!

20 Likes

In the animation tool in studio, disable looping on the animation and export it to ROBLOX again. Then, in a server script when you load the animation on the dummy, you can set the Looped property to true. Here’s an example:

local anim = workspace.Dummy.Humanoid:LoadAnimation(AnimationObjectHere)

anim.Looped = true
anim:Play()
27 Likes

Thanks! It works now! I appreciate your help!

8 Likes

What’s your use case for not wanting loop on the animation object in the Animation Editor but during run time? You could easily enable looping and upload your animation. It doesn’t seem like there’s any difference between looping via script and via the Animation Editor.

8 Likes