Like I want to script it.
EX: I pressed the "Play" button, and it deletes the message.
I know everything, but the ending part. (Last line) I want to know it.
Like I want to script it.
EX: I pressed the "Play" button, and it deletes the message.
I know everything, but the ending part. (Last line) I want to know it.
-- Make sure this is in the button
Gui = Script.Parent.Parent.Parent --LOCATE THE WHOLE GUI HERE
function OnClick()
Gui.Visible = false
end
script.Parent.MouseButton1Click:connect(OnClick)
--OR
Gui = Script.Parent.Parent.Parent --LOCATE THE WHOLE GUI HERE
function close()
Gui:destroy()
end
script.Parent.MouseButton1Down:connect(close)
--EITHER OF THEM WORK. YOU ONLY NEED 1. Make sure this is the button's child
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
That was helpful.
Thanks. If you wish, could you please consider this as the Correct Answer if you think so?