function MakePath(target)
local path = PathFinding:CreatePath()
path:ComputeAsync(MobTorso.Position,target.Position)
for i,v in pairs(path:GetWaypoints()) do
if v.Action == Enum.PathWaypointAction.Jump then
MobHumanoid.Jump = true
end
if CheckIfLineOfSight(target) or findClosest()~=target then break end
MobHumanoid:MoveTo(v.Position)
MobHumanoid.MoveToFinished:Wait()
end
end
The code works fine, it works great. however between each node when the humanoid moves, there is a short delay, resulting in very choppy movement when the huamnoid is moving through the nodes of the path. Does anyone know why?
