Hi I'm writing this game which requires animations for the npcs. I have stuff where I want the animation to loop forever. I'm not sure why but it only plays once and then stops. If I run it (not like with player. just running it) it works fine. I have a local and non local script that are duplicates and it doesn't do anything.
Code:
local Humanoid = script.Parent:WaitForChild("Humanoid")
local animationTrack = Humanoid:LoadAnimation(script.NPCIdle) -- The animation is in the script
animationTrack.Looped = true
animationTrack:Play()

1 comment
did you turn the looping option on in your animation editor? also please do not ask the same question multiple times