Custom npc not able to climb ladders

My custom npc dont wanna clime ladders basically, it just stops instead of trying to walk up the truss. I dont get any errors whilst running it.This is the code for the ai:

while true do
	local target = getNearestTarget(observers)
	local pathParams = {
		AgentRadius = 8,
		AgentHeight = 12,
		CanJump = true
	}

	local path = game:GetService("PathfindingService"):CreatePath(pathParams)
	path:ComputeAsync(scp.PrimaryPart.Position, target.PrimaryPart.Position)
	local waypoints = path:GetWaypoints()
	local waypoint = waypoints[2]
	
	if path.Status == Enum.PathStatus.Success then
		humanoid:MoveTo(waypoint.Position)
	end
	local blockedConnection = nil
	blockedConnection = path.Blocked:Connect(function(blockedWaypointIndex)
		blockedConnection:Disconnect()
		humanoid:MoveTo(waypoint.Position)
	end)

    wait(0.25)
end

Video:
https://gyazo.com/7b270080e490a5575f328aede107dc05

It dont create waypoints either, at all.

https://gyazo.com/c41851baf0699003f8ee6da6783ebed4

I think you need to set AgentCanClimb to true, check the docs for more info: PathfindingService | Documentation - Roblox Creator Hub

Well now it does walk towards the player but it dont quite climb the ladder.
image