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

How do I connect a Seat GUI to another object?

Incredibly confused.

What I've currently done is made a GUI which is given to the player when they sit in the seat. The GUI hierachy is:

ScreenGUI > TextButton

When the player clicks on the text button, I want it so that they can control, for example, another part's transparency.

Model > Seat > ScreenGUI > TextButton

Model > Part > Transparency

How do I get it so that when they press the text button, it goes up to Model then back down into Part ?

Sorry about it being confusing, don't think there's a simpler way to explain it. Help appreciated!

  • Sam4550

1 answer

Just like this:

I am assuming the script is in seat

script.Parent.Part.Transparency = stuff

2 comments

0

Well, what if it's being controlled by a TextButton inside a GUI?

0

Hm, but what copies that GUI to player? Make so that script inserts ObjectValue in GUI that points to that model. Then just use that reference from GUI script.

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