Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is there a way to make the animation endless?

local id = "http://www.roblox.com/Asset?ID=272852444" --Change to your anim id
local animation = Instance.new("Animation")
animation.AnimationId = id
local controller = Instance.new("AnimationController")
controller.Parent = script.Parent
local animTrack = controller:LoadAnimation(animation)
animTrack:Play()

I have this animation but I want it to be able to play endlessly, like an idle animation but can't be beaten by the priority system. Is it even possible?

1 answer

✓ Accepted answer

Yes, but you have to do it when you're creating the animation. In the editor, you'll notice a looping toggle in the upper right hand corner. Just enabled this.

Of course, you could continuously call Play(), but this isn't a good idea when the looping is already built into the system. If you have your animations saved, then it's a simple matter to load it again and enable the looping.

1 comment

0

Thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.