i was watching a tutorial and i tried the script and it didnt work
and yes, i did double check to make sure that i was following the tutorial right
local PathfindingService = game:GetService("PathfindingService")
local human = script.Parent:WaitForChild("Humanoid")
local torso = script.Parent:WaitForChild("Torso")
local path = PathfindingService:CreatePath()
path:ComputeAsync(torso.Position, game.Workspace.endingPart.Position)
local waypoints = path:GetWaypoints()
for i, waypoint in pairs(waypoints) do
human:MoveTo(waypoint.Position)
human.MoveToFinished:Wait(2)
end
human:MoveTo(workspace.endingPart.Position)

2 comments
Does it give any errors on console? Does the human exists? Does 'endingPart' exist on the workspace?
not at all