I've got a Start menu for my game and I want it to disappear when I press play, how would I do this?
COMMUNITY QUESTION
How do I disable a screengui when I press a gui? e.g - play
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.
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.

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