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

What does plane is not a valid member of seat mean?

Asked by 5 years ago
Edited 5 years ago

I'm making a tycoon and whenever I put the plane into the tycoon, the tool to fly the plane doesn't pop up anymore. I get the words (plane is not a valid member of seat) in the output but im not sure what this means. It brings me to the second line of the code below. Could anyone help me with this?

while (not script.Parent.Parent.Parent.Cloned.Value) do wait() end
local tool = script.Parent.Plane:clone()
script.Parent.Plane:remove()    -- If not removed, the player will have 2 of the tools, one being like a "Ghost." This glitch seen on RO-Port Tycoon, and this line fixes it

script.Parent.ChildAdded:connect(function(obj)
    if (script.Parent.Parent.Parent.Dead.Value) then return end
    if ((not obj:IsA("Weld")) or (obj.Name ~= "SeatWeld")) then return end
    local p = game.Players:GetPlayerFromCharacter(obj.Part1.Parent)
    if (not p) then return end
    if (not p:findFirstChild("Backpack")) then Instance.new("Backpack",p) end
    if (p.Backpack:findFirstChild(tool.Name)) then return end
    local t = tool:clone()
    t.Plane.Value = script.Parent.Parent.Parent
    t.Parent = p.Backpack
    script.Parent.Parent.Parent.Origin.Value = script.Parent.Parent.Parent.Parent
    script.Parent.Parent.Parent.Parent = p.Character
end)

Workspace.tycoonkit.tycoons.blueteam.purchases.plane.planekit.plane.mainpart.mainseat. handling (with plane tool on the same level as handling).

1 answer

Log in to vote
0
Answered by 5 years ago

plane is not a valid member of seat means Plane does not exist in the Seat

0
That part I knew :) but I’m confused why that happens when I put it into the tycoon whereas when it’s not in the tycoon it works fine. TooMuchRice 10 — 5y
0
Let's see the model structure in the explorer royaltoe 5144 — 5y
0
I posted the structure above from workspace to the plane that is in the tycoon. TooMuchRice 10 — 5y
Ad

Answer this question