Is something wrong with this script?

local pathfindingService = game:GetService("PathfindingService")

local human = script.Parent:WaitForChild("Humanoid")
local torso  = script.Parent:WaitForChild("UpperTorso")

local path = pathfindingService:CreatePath()
path:ComputeAsync(torso.Position, workspace.Target.Position)
local waypoints = path:GetWaypoints()

for i, waypoint in pairs(path:GetWaypoints()) do
	human:MoveTo(waypoint.Position)
	human.MoveToFinished:Wait(2)
end

something like this may work better for you. If you have everything else right.

local pathfindingService = game:GetService("PathfindingService")
local humanoid = script.Parent:WaitForChild("Humanoid")
local torso = script.Parent:WaitForChild("UpperTorso")
local target = workspace.Target

local path = pathfindingService:CreatePath({
    AgentRadius = 2,
    AgentHeight = 5,
    AgentCanJump = true,
    AgentJumpHeight = 10
})

path:ComputeAsync(torso.Position, target.Position)
local waypoints = path:GetWaypoints()

for _, waypoint in ipairs(waypoints) do
    humanoid:MoveTo(waypoint.Position)
    humanoid.MoveToFinished:Wait()
end

Your script is wrong, i have tried

Please don’t ask for direct spoonfeeds… how about you diagnose the problem.