I'm making a roblox airline and made it so that when you click the seat traytable it makes the bottom part visible. Instead of doing GetChildren() for the model I thought I would go the simple way and just manually set transparency for each one. But when I click it says union is not a valid member of model? Here is my explorer:
TrayTableDown
Union
Union1
Union2
Union3
Union4
Union5
Part
Part1
And this is the script I'm using:
local parts = game.Workspace.TrayTableDown
script.Parent.ClickDetector.MouseClick:Connect(function()
parts.Union.Transparency = 0
parts.Union1.Transparency = 0
parts.Union2.Transparency = 0
parts.Union3.Transparency = 0
parts.Union4.Transparency = 0
parts.Union5.Transparency = 0
parts.Part1.Transparency = 0
parts.Part.Transparency = 0
script.Parent.Transparency = 1
end)

2 comments
Can you tell us what the model looks like in the Explorer Tab while testing?
It looks the same