Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How can you make an NPC walk?

Asked by 10 years ago

So, I need an NPC to walk to certain points, but I want it to walk like a ROBLOXian. For the position can I do block.position

Thanks.

2 answers

Log in to vote
0
Answered by 10 years ago

For movement you use this:

NPC.Humanoid:MoveTo(Vector3.new(0,0,0), game.Workspace.BasePlate)

Change the Vector to the position you want.

For the animations you need an Animate script.

Ad
Log in to vote
0
Answered by 10 years ago

(Continuing from Hashiru) If you want the animation asset, you can find it in your player, simply start a test run of your game, find where your player is located, and you can find the animation scripts & assets in there, just copy them all over to your NPC and it should work.

Answer this question