local path = game:GetService("PathfindingService"):CreatePath()
path:ComputeAsync(myRoot.Position,target.Position)
if path.Status == Enum.PathStatus.Success then
for i, v in pairs(path:GetWaypoints()) do
myHuman:MoveTo(v.Position)
if v.Action == Enum.PathWaypointAction.Jump then
myHuman.Jump = true
end
myHuman.MoveToFinished:wait(2)
end
else
warn(script.Parent.Name.. "Cannot reach destination!")
myHuman.Jump = true
end
COMMUNITY QUESTION
It keeps saying "Cannot reach destination" How do I make it reach destination?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
