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

How to make a GUI appear on your screen and then press a TextButton to make it disappear?

Please help me! I need some help doing this really hard script. I'm just a beginner, and I know nothing about Lua. XD

2 comments

0

if you know nothing about lua, then you most likely don't know anything about GUIs and trying to help you would be a pain, so i highly suggest getting your self familiarized with Roblox Studio and GUIs and maybe understand the basics of lua, also if im not mistaken this isn't a request forum, its a help forum

0

I know stuff about GUIS, sorry for confusing you.. :/

1 answer

 game.ScreenGui.GUI.Enabled = true
local script = script
if not script.Parent = game.ScreenGui.GUI.button then
script.Parent =  game.ScreenGui.GUI.button
end
script.Parent.MouseButton1Click:Connect(function()
 game.ScreenGui.GUI.Enabled = false
end)

13 comments

0

should work if not tell me the output

0

should work if not tell me the output

0

should work if not tell me the output

0

should work if not tell me the output

0

should work if not tell me the output

0

should work if not tell me the output

0

should work if not tell me the output

0

should work if not tell me the output

0

should work if not tell me the output

0

should work if not tell me the output

0

I hate this bug lol.

0

yeah'

0

yeah'

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