How to make a button to open and close a GUI - 2023 Working Roblox studio tutorial
In this video I will show you how to make a button open a GUI, and how to close it afterwards! Have questions? Just comment them!
Scripts:
Open GUI:
local button = script.Parent
button.MouseButton1Click:Connect(function()
script.Parent.Parent.Frame.Visible = true
end)
Close GUI:
local button = script.Parent
button.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
end)
MUSIC:
Song: Disfigure - Blank [NCS Release]
Music provided by NoCopyrightSounds
Free Download/Stream: http://ncs.io/blank
Watch: http://youtu.be/p7ZsBPK656s
Other Videos By squidopia
Other Statistics
Roblox Statistics For squidopia
squidopia presently has 79,100 views for Roblox across 86 videos, with the game making up 6 hours of published video on his channel. This is 51.33% of the total watchable video for Roblox on squidopia's YouTube channel.