Ive been trying to fix it but the npc or model wont move and when it does it just stops can anyone do anything? The Error is at line 12 and the problem is with AI Path Finding please help im in desperate need.

local function getPath(Point)
	local PathfindingService = game:GetService("PathfindingService")

	local pathParams = {
		["AgentHeight"] = 13,
		["AgentRadius"] = 3,
		["AgentCanJump"] = true
	}

	local path = PathfindingService:CreatePath(pathParams)

	path:ComputeAsync(Bot.HumanoidRootPart.Position, Point.Position)

	return path
end

local function walkTo(Point)

	local path = getPath(Point)

	if path.Status == Enum.PathStatus.Success then
		for index, waypoint in pairs(path:GetWaypoints()) do
			Humanoid:MoveTo(waypoint.Position)
			Humanoid.MoveToFinished:Wait()

6 comments

0

what's the error

0

Error : Position is not a valid member of RotateP "Workspace.FacilityBotWaypoints.STFU NOOB"

0

okay

0

well i think you should do RotateP.C0.Position or RotateP.C1.Position because RotateP is not a part

0

So i used the C0.Position but then i got an error that says : C0 is not a valid member of Part "Workspace.FacilityBotWaypoints.Point"

0

no, he meant workspace.FacilityBotWaypoints.STFUNOOB.C0.Position