Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I disable a screengui when I press a gui? e.g - play

I've got a Start menu for my game and I want it to disappear when I press play, how would I do this?

2 answers

GUI = 

script.Parent.GUI.MouseButton1Down:connect(function()
script.Parent:remove()
end)

or

GUI = 

script.Parent.GUI.MouseButton1Down:connect(function()
script.Parent.Visible = false
end)

Precise variable, also precise parents if they doesnt fit.

1 comment

0

Hi, Where would I insert the script? The TextButton?

you could either do this GUI:remove()

or just make everything inside the GUI invisible

GUIchildName.Visible = false

This discussion is preserved as it was. New answers, comments, and votes are closed.