Hello! I'm extremely new to pathfinding and I'm trying to learn. One thing I don't understand is how you would make NPCs jump over obstacles when they meet them. What's the best way to do this? Thanks.
local pathFinding = game:GetService("PathfindingService")
local start = script.Parent.Torso
local path = pathFinding:FindPathAsync(start.Position, workspace.partt.Position, 500)
local waypoints = path:GetWaypoints()
for _, waypoint in pairs(waypoints) do
local waypointPosition = waypoint.Position
script.Parent.Humanoid:MoveTo(waypointPosition)
script.Parent.Humanoid.MoveToFinished:Wait()
end

1 comment
you could use Region3