I need help with guis button scripts When click the button
function mousebutton1down (click)
to open the gui and then i need a close button
Thanks if you can help
local frame = ... -- Be sure to replace these two with proper variables. local button = ... button.MouseButton1Down:connect(function() if frame.Visible then -- Short-hand for 'if frame.Visible == true' frame.Visible = false else frame.Visible = true end 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.