I created a while loop that has my npc walk a path back and forth. this path consists of 4 points.
It works fine when i have the npc walkspeed at 16, even if i stand in front of him and delay him to his point he keeps fighting until he gets to that point and then moves to the next one.
However, when i change the speed to 8 he starts walking towards the first point and before he even gets there he starts moving to the second and so on.
here is the code. the script is in the npc model
local humanoid = script.Parent.Humanoid
while wait() do
humanoid:MoveTo(game.Workspace.wg1.pos1.Position)
humanoid.MoveToFinished:Wait()
humanoid:MoveTo(game.Workspace.wg1.pos2.Position)
humanoid.MoveToFinished:Wait()
humanoid:MoveTo(game.Workspace.wg1.pos3.Position)
humanoid.MoveToFinished:Wait()
humanoid:MoveTo(game.Workspace.wg1.pos4.Position)
humanoid.MoveToFinished:Wait()
humanoid:MoveTo(game.Workspace.wg1.pos3.Position)
humanoid.MoveToFinished:Wait()
humanoid:MoveTo(game.Workspace.wg1.pos2.Position)
humanoid.MoveToFinished:Wait()
end

1 comment
Same goes for me. When i changed the hum walkspeed to something lower than 16 it usually turns to the next pos before reaching it's destination