Is there a way to use path following instead of path finding?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I would like to find out if there is an algorithm or function to make an NPC try and stick to a certain selection of nodes when pathfinding.
  2. What is the issue? Include screenshots / videos if possible!
    The issue is I can’t find any documentation about path following.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I have looked on the developer forum and searched through Roblox documentation.

Sorry if this might seem rude but I just want to know if it’s possible.

1 Like

There’s a method in the humanoid called MoveTo, if you just keep calling it to update every time it hits a node then you are good. Read more about it here.


It’s simply a matter of:

  1. Detect if close to a wanted node
    a. If not, path find to closest wanted node
    b. If so, then keep following the path the nodes make. (With a little more complexity than is meant here)

Should work, even if the character is not close to the nodes and there are buildings/objects infront of it.

Thank you for the help, I will try this out.