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

How do I get the animations to stop instantly repeating when played?

Is there a way to get the animations to play at their full length at either :Play()? Currently when the script plays, the animations keep instantly repeating.

(wondering if there was a way for the animation to play full length before looping, currently it just instantly repeats without the animation playing fully)

local juicy = script.Parent["Right Arm"].MeshPart
local hum = script.Parent.Humanoid
local anim = hum:LoadAnimation(script.Parent.Animation)
local anim2 = hum:LoadAnimation(script.Parent.Animation2)

while true do
	wait(.1)
	if juicy.Transparency == 0 then
		anim:Play()
		anim2:Stop()
	end
	if juicy.Transparency == 1 then
		anim2:Play()
		anim:Stop()
	end
end
	

1 answer

You can set animation looping to false inside of the animation editor

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