Correct properties not showing up in-studio

Greetings.

So I am currently trying to make a panel where settings for brickcolors and materials etc are defined as I am creating a stage.

However, once I toggle any properties via a localscript ( e.g. textlabel visibility, color etc ), the changes are done / visible in the properties but not in-game.

As visible, I selected a TextLabel and point out to the visibility property, it is false even though the TextLabel is still visible on the GUI.

The same occured with the property BackgroundColor3.

Any hints on what I might be doing wrong? Let me know, thanks! ;o

1 Like

you’re looking at the properties of the gui in StarterGui, not in PlayerGui
on a player’s screen, they use the guis in PlayerGui
StarterGui is pretty much a folder of guis to clone into PlayerGui when a player’s character spawns

How’d I simulate the PlayerGui when running in Studio?

The PlayerGui is in the Player instance, so for your player, you’d find it as
game.Players["9Dcx"].PlayerGui

Okay, I figured out that even though it prints false in the console, it is still visible in the PlayerGui

make sure the one in the console and the script editing the gui are also the PlayerGui one, editing the StarterGui gui does not change the one in PlayerGui

So you say I should move my LocalScript from StarterGui to PlayerGui then retry?

can you extend the explorer so we can see the full pathname you are using?

image

The full path is StarterGui as I already mentioned above

image

^ I also run that twice.

you’d leave the local script in StarterGui because PlayerGui doesn’t exist until a player exists, but when you want to access the gui in the script, instead of doing something like game.StarterGui.SomeGui, you’d do game.Players.LocalPlayer.PlayerGui.SomeGui

That solved it, thank you for enlightening me.

1 Like