I know the :MoveTo() Function but I can't figure out how to get my NPC to follow a player if its close so for example:
local Position = script.Parent.Torso.Position local MaxDistance = 10
How would I make it so if you are within MaxDistance (10) Studs from the npc it will follow you but if it is MaxDistance (10) away from Position it will return to Position which was its original Position?