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!
COMMUNITY QUESTION
How do I call a GUI to open from a script?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
You shouldn’t be using StarterGui. Use PlayerGui.
^^^^ with LocalPlayer if u use a LocalPlayerr scriot
LocalPlayer.PlayerGui
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.