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