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

How do I call a GUI to open from a script?

Asked by 5 years ago

I have a main game script that waits for a few things before calling a gui that allows the player to choose a team to open. The Frame is in StarterGui underneath a ScreenGui and works fine if I have it visible right away, but I thought that I would keep it invisible and use the line 'local teamgui = game:GetService("StarterGui").GUI.TeamFrame' and calling it with 'teamgui.Visible = true'. so that players don't get access until all the players are in the game. Is there another way I should be calling this? Thank you!

0
You shouldn’t be using StarterGui. Use PlayerGui. User#19524 175 — 5y
0
^^^^ with LocalPlayer if u use a LocalPlayerr scriot MaxDev_BE 55 — 5y
0
LocalPlayer.PlayerGui User#19524 175 — 5y
0
ok this might sound like a bad question but how am I able to see PlayerGUI in my explorer like I can with StarterGUI? I found it in in advanced objects but I don't see anywhere to drag it into. Or maybe I use it another way? EDIT: Ok sorry now I see what you are saying thank you so much I'll try this. toastedtoast224 26 — 5y

Answer this question