Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i make a gui that when you click it, it will go invisible?

Asked by 9 years ago

How do i make a gui that when you click it, it will go invisible?

1 answer

Log in to vote
1
Answered by 9 years ago

This script needs to be placed in to a TextButton to have it working.

local gui = script.Parent --Which I hope is a TextButton
gui.MouseButton1Down:connect(function()
    gui.Visible = false
end)

I suggest going to http://wiki.roblox.com/index.php/Beginner's_guide_to_GUI if you're new to GUI's

0
Works! iluvmaths1123 198 — 9y
Ad

Answer this question