How To Make A NPC That Follows Someone Thats Behind Him?

So I Need A NPC That Follows Someone Thats Behind Him
like: there are 3 players, player 2 is far from npc (not following) player 1 is medium far away from npc (not following) player 3 is close to npc (npc is following him)
i need a following system like that but how to do it?

------------------------------------------------------what i need as help----------------

  • following script
  • where to add following script
  • other things that i need and where i need to add it
2 Likes

make a function where the npc follows the player’s humanoid root part by MoveTo() and add a distance by using vector3

1 Like

This difficulty scripting is the same as your post here

Like I said in your other post:

Don’t even do this if you can’t script!

The devforum isn’t exactly the place to learn scripting, it’s more of a place for people who already know it to get help with it. Please learn basic scripting, and then come back and ask again once you can make at least part of it yourself.

Please do not create several threads for the same topic: How To Make A NPC That Follows Someone Thats Behind Him?