-
What do you want to achieve?
I want to hide all of the ScreenGuis in the game until the play button is pressed on the main menu screen. -
What is the issue?
I am not sure how to go about hiding the ScreenGuis. The code either doesn’t work or breaks the main menu screen. (Red X or dot = hide)
-
What solutions have you tried so far?
The Hide UI tutorials on YouTube were somewhat helpful, but the issue I ran into was when a player resets, the GUIs turn invisible again. And since the main menu only shows up upon first joining the game, there is no way to toggle the GUIs back on. The existing script hides all of the CoreGui elements effectively, but the challenge I am facing is how to also hide the ScreenGuis.
Current LocalScript (Startup):
local startergui = game:GetService("StarterGui") startergui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false) startergui.MainMenu_Right.Enabled = false startergui.Settings.Enabled = false startergui.Left_Side.CharList.Enabled = false startergui.Left_Side.CharacterChanger.Enabled = false startergui.Left_Side.RoleplayNameGui.Enabled = false startergui.Left_Side.ShopMenu.Enabled = false script.Parent.Enabled = true