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
button:remove()
Thanks if you can help
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
button:remove()
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.
Thanks @badcc so my frame would be local frame = script.Parent and the button is local button = script.parent.parent?
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
What exactly do you need ? Be more precise please.
Please do not spam tags. Thanks!
i didnt spam tags... i only put one