Need Help with PathFinding

Hello… i’m very new to scripting (Sorry for bad english )
I was trying to use path finding with a custom model
How can i achieve this
i tried the normal way but the humanoid root part only moves

local pathfinding = game:GetService("PathfindingService")
local human = script.Parent:WaitForChild("Humanoid")

local torso = script.Parent:WaitForChild("Torso")

local path = pathfinding:CreatePath()

path:ComputeAsync(torso.Position, game.Workspace.End.Position)
wait(5)
local waypoint = path:GetWaypoints()

for i,v in pairs(waypoint) do 
	human:MoveTo(v.Position)
	human.MoveToFinished:wait(2)
end

(Not sure about where to post this Topic )

1 Like

Weld the humanoidrootpart to everything else, use qperfection weld then you can animate it.

2 Likes

Nope the model was just stuck…

try changing that to humanoid root part

still nope The issue is still the same
(as i am very new to scripting is there a forum or wiki that helps me understanding my issue , srry for bad english)

ok, try making the HRP bigger and weld it.

it’s not the script it’s that you didn’t weld it


also tried the qperfection script in it
also made the humanoid root part bigger

your script isnt really the issue here, it works; its the rig/model you are using to move there. you should look into learning how to create rigs.

1 Like