NPC Idle Animation Only Playing Once

Hey there!

I am trying to create a custom Idle animation for an NPC using the default Roblox Animate script that is inserted into your Character when you join the game. I copied this code, put it into a Script in my NPC, & changed the ID of the Idle animation to the one I wanted. However, when I played the game, the Idle animation only played once, while Looped is turned on for the Animation.

Here is the lines of code for the Idle:

idle = 	{	
		{ id = "http://www.roblox.com/asset/?id=7845300451", weight = 10 },
	},

I don’t know if this problem is supposed to happen with custom Idle animations, or if there is actually something wrong with the script.

Help is appreciated, thank you!

1 Like

Just use AnimationTrack:Play() every time you need to play the animation.

1 Like

It’s already played later in this Animate script, but as the Animation is Looped, it should just keep playing infinitely. This isn’t happening for some reason…

1 Like