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

How Can I Make A Gui Open When Clicked and Closed When Clicked Again?

Hi, I Just Want To Know How To Make A Script That Closes And Open When Clicked, You Can Also Help Me Little Bit More By Adding Like "How To Make A Gui That You Have To Pay Robux" or "How To Make A GUI Backpack When Collected" Or ETC.

2 comments

0

learn how to use functions, MouseButton1Clicked, and if statements to do that. All of them are pretty easy to do. You can't just ask for free scripts here, dude.

0

No requests.

1 answer

This is a pretty simple solution. This example uses a local script inside a text button:

local button = script.Parent

button.MouseButton1Click:Connect(function()
   button.Visible = not button.Visible --set it to the opposite value
end)

2 comments

0

Boo gioni, boo.

0

ur boo

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