Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

MoveTo is extremely stuttery?

Asked by 5 years ago

Hello, I've been having problems with MoveTo, whenever the humanoid gets close to it's target it stutters and never actually fully reaches it's target despite having a faster walkspeed. This code is in a modulescript.

zombie_pathFind.Path = function(zombieHRP, zombieModel, zombieHum, trigDist)
    local nearestPlr = findTorso.FindTorso(zombieHRP)
    if nearestPlr ~= nil and nearestPlr.HumanoidRootPart ~= nil then
        local path = PathfindingService:CreatePath()
        path:ComputeAsync(zombieHRP, nearestPlr.HumanoidRootPart.Position)
        local wayPoints = path:GetWaypoints()
        zombieHum:MoveTo(nearestPlr.HumanoidRootPart.Position, nearestPlr)


        for _, wayPoint in pairs (wayPoints) do
            if wayPoint.Action == Enum.PathWaypointAction.Jump then
                zombieHum.Jump = true
            end
        end     
    end
end
0
I'm having this issue too. Eqicness 255 — 4y

Answer this question