–Insert this into your character–
local hum = script.Parent:WaitForChild(“Humanoid”)
local anim = hum:LoadAnimation(script:FindFirstChildOfClass(“Animation”))
anim.Looped = true
anim:Play()
(not mine script)
I have trouble: I need to make animation loop on npc, Its works only in RUN- but its don’t work in PLAY
I’ll need to see your character and all objects inside to see if there’s something interfering. Also, if you have any errors in the output please tell me what they are
Then most likely there’s another script somewhere in your game that’s preventing the animation from playing correctly as when I test in a default baseplate the script works correctly with the rig like so:
The only possible issues left that I can think of is either a plugin you have installed is causing this problem or it could also be a bug in your version of Studio. I don’t think I’ll be able to continue helping you with this problem unfortunately so I wish you luck finding the solution
Does the animation match up with the Characters Type? Lets say you made an R15 Animation and your NPC is R6, the animation will probably only run for the head. Make sure your NPC is the same Character Type as the animation
You should know that if you’re doing this: AnimationTrack.Looped = true on the server-side, then it won’t be looped on the client-side and vice-versa because it doesn’t replicate. It’s best to change your settings to whatever you need inside the animation editor