local function pathfindToDestenation(rigToMove, finishPos)
local humanoid = rigToMove:WaitForChild("Humanoid")
local humanoidRootPart = rigToMove:WaitForChild("HumanoidRootPart")
local path = PathfindingService:CreatePath()
path:ComputeAsync(humanoidRootPart.Position, finishPos)
local waypoints = path:GetWaypoints()
for _, waypoint in waypoints do
humanoid:MoveTo(waypoint.Position)
humanoid.MoveToFinished:Wait()
end
print("Finished")
end
the problem is that the humanoids go to the table at and then they get stuck because they are not fully at their destination. how do i fix this? (its not printing “Finished”)