Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How do I remove a GUI onClick?

Asked by
exit16 20
9 years ago

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

0
How do I remove a GUI when i click on it? exit16 20 — 9y
0
It depends. Do you want to completely remove it? Or do you want to hide it so that it can be shown again. AZDev 590 — 9y

3 answers

Log in to vote
4
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
9 years ago

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

Ad
Log in to vote
0
Answered by
exit16 20
9 years ago
--Don't worry guys I did it, it was--

local Gui = script.Parent
Gui.MouseButton1Down:connect(function()
    Gui.BackgroundTransparency = 1
    Gui.TextTransparency = 1
end)
Log in to vote
-1
Answered by 9 years ago
Edited 8 years ago

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

Answer this question