Help for my PathFinding error

hello guys i have problem on pathfinding and i dont know whats the wrong
the problem is its not smart its just walking to destination but it will stop when wall block the way

here the script plss help me


local hrp = script.Parent:WaitForChild("HumanoidRootPart")
local human = script.Parent:WaitForChild("Humanoid")

local dest = workspace.dest

local path = game:GetService("PathfindingService"):CreatePath()

path:ComputeAsync(hrp.Position , dest.Position)

local way = path:GetWaypoints()

for i,v in pairs(way) do
	human:MoveTo(v.Position)
end

You could perhaps watch this video, he will give you a greater understanding and could help you.

You could also follow this link:

I know this is not a direct solution as I don’t have one but these could hold the solution. If not then… Sorry lol.

1 Like

lol the problem is movetofinish lol

Lol pretty simple fix, why didn’t I see that.

1 Like