local Pathfinding = {}
local PathFindingService = game:GetService("PathfindingService")
Pathfinding.MoveTo = function(Char, Location)
local Humanoid = Char.Humanoid
local Torso = Char.Torso
local Path = PathFindingService:CreatePath()
Path:ComputeAsync(Torso.Position, Location.Position)
local Waypoints = Path:GetWaypoints()
warn(Path.Status)
for i,v in pairs(Waypoints) do
print("Go")
Humanoid:MoveTo(v.Position)
Humanoid.MoveToFinished:Wait(1)
end
end
return Pathfinding
The function does get called and passes all data need. they are both vector3s. No errors in output but it just doesn’t compute the path?