Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

?Error with ScreenGui and Enabled. Help me!

local ScreenGui = Instance.new("ScreenGui") is the local ScreenGui. local ScreenGui2 = Instance.new("ScreenGui") and ScreenGui2.Name = "ScreenGui2" are the variables and names. ScreenGui.Enabled = false and ScreenGui2.Enabled = true Note: ScreenGui didn't have his name changed.

The GUI's don't show up.

No errors, and it's a LocalScript. I program the ScreenGui2 to set ScreenGui's enabled to true after pressing a button, aswell.

I also need to know if local scripts can FireServer to the remote event in replicated storage

1 comment

0

Try changing the visibility of the frames instead of the screengui's, as far as I remember, if the screengui is disabled, then the script is too.

1 answer

You need to add a frame to the screen GUI. Screen Guis dont show anything by themselves. You need to create a frame and put it inside of the two Screen Guis or else enabling/Disabling won't visibly show anything.

This discussion is preserved as it was. New answers, comments, and votes are closed.