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

[SOLVED] Is it possible to hide a gui while editing a game in studio?

Asked by 8 years ago
Edited 8 years ago

I have a pretty big shop GUI that displays the gamepass and takes up a large portion of the screen. Is there a way to hide it while editing the game so I don't have to continuously remove and re-add it every time I adjust a brick?

It would be great to know, and if so, how to do so. Thanks!

1
Just make everything's Visible property false, then set it in the script at the start. TheDeadlyPanther 2460 — 8y
0
Thanks for the help! OpticUniversse 50 — 8y

1 answer

Log in to vote
-1
Answered by 8 years ago
Edited 8 years ago

Well, a few things can be done

PlayerAdded

http://wiki.roblox.com/index.php?title=API:Class/Players/PlayerAdded

So when the player joins the GUI is active

game.Players.PlayerAdded:connect(function(player)
    GUI.Visible = true
end)

Visible

http://wiki.roblox.com/index.php?title=API:Class/GuiObject/Visible

As TheDeadlyPanther stated above

GUI.Visible = true
Ad

Answer this question