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

How do I remove a GUI onClick?

How do I remove a GUI that shows the credits of people who are developing my game when I click on the GUI?

2 comments

0

How do I remove a GUI when i click on it?

0

It depends. Do you want to completely remove it? Or do you want to hide it so that it can be shown again.

3 answers

✓ Accepted answer

Well, this isn't a request site so we won't create it for you. You could look up on the Wiki, the following:

MouseButton1Down MouseButton1Click Destroy

Hope I helped

--Don't worry guys I did it, it was--

local Gui = script.Parent
Gui.MouseButton1Down:connect(function()
	Gui.BackgroundTransparency = 1
	Gui.TextTransparency = 1
end)

Last Challenge

In the last challenge, I asked you to recreate Conway's popular Game Of Life. We had four submissions, and all four seem to check out. One of my favorites was one done by Solved. Kingdom made theirs the very largest. Thank you to all who attempted the challenge.

Soved's Solution

Kingdom5's Solution

Evaera's Solution

Turtletowerz's Solution


Snack Break #19's Problem

This challenge was suggested to me by Kingdom5. He suggested we re-make the 1989 game Minesweeper. People seemed to have enjoyed recreating basic games that take some thinking, and so do I.


Rules

The rules for this game are rather simple. You must create a grid, at least 9x9, that contains hidden mines or hazards. The player then clicks tiles to uncover what's underneath. The first click a player makes is always safe. The square will then display the number of bombs in a 3x3 area around the tile. Normally, the player can right-click to flag tiles so they don't miss-click and blow everything up.

You can play a game of minesweeper online here, and this link is very helpful for strategy or examples on the rules and how to play. I also made an example on ROBLOX in preparation for this challenge that you can play here. I'll make sure to open source the game when the challenge is over.

I'm really excited to see your solutions and creative game ideas. Feel free to get creative, but stick to the main rules for the game. I'll point out my personal favorite solution on the next snack break.


Submission

To submit your attempt, just send me the link to the place/model here along with your SH username. If you're submitting the place, please make the game open source. If you complete the challenge, you will be mentioned on the next snack break.

https://scriptinghelpers.org/posts/20

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