Are YOU A New Developer Needing Help On Making A Open/Close Button? Well This Is The Tutorial For You!
Step One: Create A “Screen Gui” In Starter Gui, Click The + Button Then Click Screen Gui.
Optional Name It Open Close Gui
Step Two: Create A New Text Button And Name It: “Open”, Then Go Into The Properties Then Set The Text To: “Open” And Move The Button Anywhere You Want.
Step Three: Repeat Step Two But Name It “Close” And Set The Text To Close, Then Make It Not Visible.
Step Four: Add A Local Script In Your Screen Gui Then Copy This And Paste It Into Your Script:
function openorclose()
script.Parent.Open.Visible = not script.Parent.Open.Visible
script.Parent.Close.Visible = not script.Parent.Close.Visible
end
script.Parent.Open.MouseButton1Click:Connect(openorclose)
script.Parent.Close.MouseButton1Click:Connect(openorclose)