Salut! I am having a bit of trouble with my Pathfinding script Seen Below. It just simply does not want to move the npc to the Part in workspace that i need it too. I would use the Roblox Documentations for this type of stuff… But it is very vague in (in my personal opinion).
local human = game.workspace.Dummy
local torso = human:WaitForChild("UpperTorso")
local PathfindingService = game:GetService("PathfindingService")
local Endpart = game.workspace.Part
local path = PathfindingService:CreatePath({
AgentRadius = 3,
AgentHeight = 6,
AgentCanJump = true,
AgentCanClimb = true
})
path:ComputeAsync(torso.Position, Endpart.Position)
human:MoveTo(Endpart.Position)
I could just be not using the right functions, but once again the documentation on this stuff was scarce.
Another thing to note is that i do not get any errors in the output when ran.