NPC Animation won't loop

I made an animation for a NPC, i marked as idle,action and others too. But it just play 1 time and won’t loop the animation.

local animation = script:WaitForChild('Animation')
local humanoid = script.Parent:WaitForChild('Humanoid')
local dance = humanoid:LoadAnimation(animation)
dance:play()
dance.Looped = true

Uhhhh this is right from the top of my head.
Set .Looped = true above where you play the animation.

If that doesn’t work, godspeed.

I ofc tried it, it won’t work too…

Quick googling and it seems that it’s a Roblox bug.

Here’s the solution:

republish your animation with the looped property to be true by default via the roblox animation plugin.

1 Like

Thank you! It worked now with plugin.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.