there's a MoveTo() function in humanoids that you can use.
MoveTo() has a Vector3 parameter. it basically acts as a "coordinate" in which the npc will walk towards.
simply reference the npc's humanoid and attach the function:
local npchumanoid = [npc]:WaitForChild("Humanoid")
if npchumanoid then
npchumanoid:MoveTo([destination])
end |