Trying to loop an animation that plays once

Trying to loop one of roblox’s emotes using the asset ID. I have already got 6 other animations working but this one animation only plays once and doesn’t play again. Not sure how I could get it to loop.

The animation: Louder - Roblox

The script:

if seed == 7 then
	while true do
		anim7:Play()
		anim7.Stopped:wait()
	end
end

Here is an example of what the other animations look like:

if seed == 6 then
	anim6:Play()
end

Hey! I think there is a property you can change for that.
Go and take a look at AnimationTrack.Looped.

1 Like

I tried using that. I used anim7.Looped = true in the if loop and I tried using it in the beginning of the script after the animation was loaded.

I also tried using this:

if seed == 7 then
	while true do
		anim7:Play()
		wait(5)
	end
end

Neither of these have worked. :frowning: