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

?Error with ScreenGui and Enabled. Help me!

Asked by 4 years ago
Edited 4 years ago

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

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. MachoPiggies 526 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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.

Ad

Answer this question