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

How do I make an NPC move at to a designated direction?

Asked by 4 years ago

I was thinking about making a Fashion or clothing exhibition. I then got the idea of making a runway for it to look better and more unique than the other homestores. I've already made 60% of the game but my only problem is how to move an NPC to my designated position.

1 answer

Log in to vote
0
Answered by 4 years ago

If it's a known, unobstructed path, you can just use Humanoid:MoveTo(position), where position is a Vector3 where you want the NPC to walk towards. There is a PathfindingService for generating waypoints for more complicated NPC navigation, but this shouldn't be needed if the path is predetermined as it would be for a runway.

0
big brain emily woaaaaaaaah Fifkee 2017 — 4y
Ad

Answer this question