GUI's not showing

So I have a GUI that should show when You join the game and another that shows after 1.5 seconds, but neither will show. The code is a LocalScript inside of a folder in StarterGUI.

Code
local StartUpGUI = script.Parent.Parent.StartUpGUI
local StartUpName = StartUpGUI.StartUpName
local StartUpLoading = StartUpGUI.Loading
local MainMenu = script.Parent.Parent.MainMenu

game.Players.PlayerAdded:Connect(function()
   MainMenu.Visible = false
   StartUpGUI.Visible = true
   wait(2.5)
   StartUpGUI.Visible = false
   MainMenu.Visible = true
end)
1 Like

Do ScreenGui.Enabled = true or ScreenGui.Enabled = false

What do you mean? The property Enabled is set to true inside of ScreenGUI.

split the Gui into 2 seperate ScreenGui’s and enable each one when you need it

Didn’t work. Is there anything else that could be stopping it?

Here’s a picture:

PlayerAdded doesn’t work well in local scripts as it does on the server, so just remove it. Also I noticed you’re trying to access a ScreenGui through a script outside of it, that won’t work as all GUIs are replicated to PlayerGui when the player first joins.

Is there a reason why you have two ScreenGuis? Can’t you just put both frames in one?

1 Like

I just figured that out a couple of minutes ago.