while wait()do
path = game:GetService("PathfindingService"):ComputeRawPathAsync(game.Workspace.End.Position,script.Parent.Torso.Position,500)
points = path:GetPointCoordinates()
for plr = 0,#points do
script.Parent.Humanoid:MoveTo(points[plr])
end
end
Returns Error :
17:48:52.697 - Argument 1 missing or nil
17:48:52.697 - Script 'Workspace.Player.Script', Line 5
17:48:52.697 - Stack End
Why does it not work ????? |