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

How do I connect a Seat GUI to another object?

Asked by
Sam4550 42
10 years ago

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

Log in to vote
0
Answered by 10 years ago

Just like this:

I am assuming the script is in seat

script.Parent.Part.Transparency = stuff
0
Well, what if it's being controlled by a TextButton inside a GUI? Sam4550 42 — 10y
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. ZarsBranchkin 885 — 10y
Ad

Answer this question