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

Best Way To Animate An NPC?

I am trying to make an NPC with a sword preform a slash animation when attacking. How would I make the animation execute? The same way for a regular player?

2 answers

If you want to make a slash animation then you will have to play the animation by playing an animation track of it on the humanoid. If your game is filtering enabled then you may have to use remote events to accomplish this.

Documentation on this subject can be found here

If you want to replace default character walk, jump, fall etc. then you will have to change some variables in the characters 'animate' script.

Documentation on this subject can be found here

Finally if you want to play animations in NPCs (Non-Player Characters) then you will have to also play animation tracks on the NPC's humanoid and add extra motors and more.

Documentation on this subject can be found here

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