Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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

3 comments

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.

0

Let's see the model structure in the explorer

0

I posted the structure above from workspace to the plane that is in the tycoon.

This discussion is preserved as it was. New answers, comments, and votes are closed.