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

Unable to cast value to Object?

I am trying to make the animation loop and it plays once, but because of the error it doesn't loop and stops the script. Help?

local animation = script:WaitForChild('Animation')
local hum = script.Parent.Humanoid
local animationtrack = hum:LoadAnimation(animation)
animationtrack:Play()
animationtrack.Looped = true

1 answer

✓ Accepted answer

There is no looped value inside of the Animation, to make the animation loop, open the animation again (on a dummy or player model), and click the loop button (arrow thingy with play button in middle). After doing that, click export and overwrite the existing asset (bottom left). Hope this helped! Let me know if it doesn't work.

1 comment

0

Thank You!

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