My Text Button Is Not Showing

  1. I wanted to make a button that clears all the GUI’s and bring out a button that reopens them and it worked.

  2. 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)

Can you please describe the types of each guis?

Is this inside of a frame? Like

Frame

  • Stuff

or just show me a screenshot of the explorer?

Guis is starter Gui
close is the close button
donation is a donation button
gamepass are the gamepasses
reset is reset stage
Skip is skip stage

Just send me how the explorer looks?

Well i understand make the

Close.Enabled = true

All of the script do that.

Because if you false it make the visible false

That makes sense.

No it is not inside a frame. should it be?

1 Like

yeah, so it would be easier (I guess)

I know how to simplify it? I think

image
This is the explorer.

oh, I think you should make the frame as a parent

So ok I will try to do that now.

this should do the trick

for i, guis in pairs(gui:GetChildren()) do
	guis.Visible = false
end

replace this with the frame name

well when i think of it that works.

oh wait wrong
does the button the one that isnt visible?

no it is the gui itself that is not visible.

Oh, so there’s nothing wrong now?

im not really done right now…