I've been trying to make an NPC move towards two mapped points using MoveTo(). It works fine though instead of going straight to the appropriate point it goes a few steps before it.
Since I'm not the most elegant person when it comes to explaining something I'll just show the DIY code (which to me seems fine?).
local list = {"P1", "P2", "P3", "P4", "P5"}
local npc = game.Workspace.NPC.Humanoid
local i = 1
npc:MoveTo(workspace.Nodes:FindFirstChild(list[i]).Position)
i = i + 1
npc.MoveToFinished:wait()
npc:MoveTo(workspace.Nodes:FindFirstChild(list[i]).Position)
Any help would be much appreciated.
