I need help with guis button scripts When click the button
1 | function mousebutton 1 down (click) |
to open the gui and then i need a close button
1 | button:remove() |
Thanks if you can help
1 | local frame = ... -- Be sure to replace these two with proper variables. |
2 | local button = ... |
3 | button.MouseButton 1 Down:connect( function () |
4 | if frame.Visible then -- Short-hand for 'if frame.Visible == true' |
5 | frame.Visible = false |
6 | else |
7 | frame.Visible = true |
8 | end |
9 | end ) |
If you would like for the GUI to tween, you can learn more here. If you have any questions on them, feel free to reply.