Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

how to make a npc walk with a different animation?

I created a zombie walking animation but I don't know how to add that to a NPC help?

1 answer

✓ Accepted answer

This is the basics:-

		-- load it to the humanoid; get AnimationTrack
		currentAnimTrack = humanoid:LoadAnimation("Animation file here")
		 
		-- play the animation
		currentAnimTrack:Play("transitionTime")

for the full script run the project in solo mode, then find your character. in the character will be an Animate script which all character in roblox use in every game. hope this helps

This discussion is preserved as it was. New answers, comments, and votes are closed.