Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Position is not a valid member of RotateP "Workspace.Folder" Think anybody can help me with this?

Asked by 2 years ago
Edited 2 years ago

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()
0
what's the error Xapelize 2658 — 2y
0
Error : Position is not a valid member of RotateP "Workspace.FacilityBotWaypoints.STFU NOOB" NightEpix 0 — 2y
0
okay Xapelize 2658 — 2y
0
well i think you should do RotateP.C0.Position or RotateP.C1.Position because RotateP is not a part Xapelize 2658 — 2y
View all comments (2 more)
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" NightEpix 0 — 2y
0
no, he meant workspace.FacilityBotWaypoints.STFUNOOB.C0.Position Xeqro 20 — 2y

Answer this question