#PathFindingService problem

1 messages · Page 1 of 1 (latest)

spare ruin
trim glacier
#

i think i had somewhere same issue

spare ruin
#

local goal = Vector3.new(math.random(-offset, offset), 0, math.random(-offset, offset))

local path = pathFindingService:CreatePath()
path:ComputeAsync(hrp.Position, goal)
local waypoints = path:GetWaypoints()

if not panikMode then walkTrack:Play()
else runTrack:Play() end

for i, waypoint in waypoints do
    humanoid:MoveTo(waypoint.Position)
    humanoid.MoveToFinished:Wait()
end

heres the pathFinding part

#

do not mind the if not panikMode thing

#

this hapenned to me in a difrenent game as well

trim glacier
#

fixed mine

#

i just put it to humanoid.WalkSpeed*6

#

cuz moveto stops after 7s

hidden karma
#