I'm making a randomly walking person that walks between a set of nodes I made but for some reason he just teleports to each node??
Heres my script :
while wait() do
local points = game.Workspace.Nodes:GetChildren()
local randomPoint = points[math.random(1,#points)]
local Minion = game.Workspace.NPC
local Table = {}
Minion:MoveTo(randomPoint)
repeat wait() until (Minion.Torso.Position - randomPoint.Position).magnitude <= 2
end
