How do i make a gui that when you click it, it will go invisible?
This script needs to be placed in to a TextButton to have it working.
1 | local gui = script.Parent --Which I hope is a TextButton |
2 | gui.MouseButton 1 Down:connect( function () |
3 | gui.Visible = false |
4 | end ) |
I suggest going to http://wiki.roblox.com/index.php/Beginner's_guide_to_GUI if you're new to GUI's