How would I stop an NPC from jumping? (Pathfinding)

I have a script

while true do
	local pathfindingservice = game:GetService("PathfindingService")

	local humanoid = script.Parent.Humanoid
	local torso = script.Parent.Torso.Position

	local path = pathfindingservice:CreatePath()

	local part = game.Players[script.Parent.PlayerToFollow.Value].Character.HumanoidRootPart.Position

	path:ComputeAsync(torso,part)
	local waypoints = path:GetWaypoints()

	if waypoints[2] then
		humanoid:MoveTo(waypoints[2].Position)
		humanoid.MoveToFinished:Wait()
	end
end

However, I don’t want the spider to be able to jump when it is following the waypoints. How could I stop it from jumping?

In the :CreatePath there’s an option to disable jump: Character Pathfinding