I was trying to make a pathing script when it just didn't move. There are no errors.
local PathFindigService = game:GetService("PathfindingService")
local human = script.Parent:WaitForChild("Humanoid")
local torso = script.Parent:WaitForChild("Torso")
local path = PathFindigService:CreatePath()
path:ComputeAsync(torso.position, game.Workspace.Part.Position)
local waypoints = path:GetWaypoints()
for i, waypoint in pairs(waypoints) do
human:MoveTo(waypoint.Position)
human.MoveToFinished:Wait(2)
end

1 comment
I would use HumanoidRootPart instead of torso, r15 models don't have a torso.