-
I wanted to make a button that clears all the GUI’s and bring out a button that reopens them and it worked.
-
When I press the button to reopen them they all come back except for the one I use to close.
These are my scripts please Let me know if anything is wrong Thanks.
Close Button Local Script
local Button = script.Parent
local Guis = Button.Parent.Parent
local Close = Button.Parent
local Donation = Guis.Donation
local Gamepass = Guis.Gamepasses
local Reset = Guis.ResetStage
local Skip = Guis.SkipStage
Button.MouseButton1Click:Connect(function()
Close.Enabled = false
Donation.Enabled = false
Gamepass.Enabled = false
Reset.Enabled = false
Skip.Enabled = false
Guis.OpenGui.Enabled = true
end)
Open Button Local Script
local Button = script.Parent
local Guis = Button.Parent.Parent
local Close = Button.Parent
local Donation = Guis.Donation
local Gamepass = Guis.Gamepasses
local Reset = Guis.ResetStage
local Skip = Guis.SkipStage
Button.MouseButton1Click:Connect(function()
Close.Enabled = true
Donation.Enabled = true
Gamepass.Enabled = true
Reset.Enabled = true
Skip.Enabled = true
Guis.OpenGui.Enabled = false
end)