I am working with roblox's path finding service and i have a code but it seems to not work for some reason i get this error FindPathAsync is not a valid member of Path "Instance" and the error is coming form line 16
My code:
local torso = script.Parent.Torso
local config = {
["AgentHeight"] = torso.Size.Y,
["AgentRadius"] = torso.Size.X,
["AgentCanJump"] = true
}
while true do
local finish = workspace.Destination
local start = script.Parent:FindFirstChild("HumanoidRootPart")
local service = game:GetService("PathfindingService"):CreatePath(config)
local humanoid = script.Parent:FindFirstChild("Humanoid")
local path = service:FindPathAsync(torso.Position,finish.Position)
local points = path:GetWaypoints()
for k,v in pairs(points) do
humanoid:MoveTo(v.Position)
end
wait(0.4)
end

2 comments
@WizyTheNinga would you mind adding some example code?
Look at the link I posted. It literally explains how to make a pathfinding script from scratch. I think it explains pathfinding well enough for you to understand it.