Actual script is here :
local animation = script:WaitForChild('Sitting_idle')
local humanoid = script.Parent:WaitForChild('Humanoid')
local idle = humanoid:LoadAnimation(animation)
idle:play()
idle.Looped=true
Actual script is here :
local animation = script:WaitForChild('Sitting_idle')
local humanoid = script.Parent:WaitForChild('Humanoid')
local idle = humanoid:LoadAnimation(animation)
idle:play()
idle.Looped=true
idle.Looped = true
This is actually local. Even if this is in a normal script, this only plays locally. But there's no player to even localize to, so it just breaks.
Fix: Go to the animation editor, moon animator, whatever you use. And try and locate 'Looped'. Just enable the looped then export it to Roblox. Should fix it. I had this problem like a day ago so you could've just looked at mine.
Hi, sir I've tried and the my mistake was this. Thanks !
No problem, glad I could help!
No problem, glad I could help!
Maybe you have to loop it first and then to play the animation
Hi sir, I've tried your suggestion but the animation is still not looping. Thanks btw !
Have you tried setting the Looped property by using the loop button on Animation Editor?
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Make it looped in the animation editor
and humanoid:LoadAnimation is depricated. Go to the RobloxAPI and search AnimationTrack. Scroll down, copy the script.