How to make a button to open and close a GUI - 2023 Working Roblox studio tutorial

Channel:
Subscribers:
3,100
Published on ● Video Link: https://www.youtube.com/watch?v=w_gnuhQ7L5s



Roblox
Game:
Roblox (2006)
Category:
Tutorial
Duration: 3:29
174 views
10


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 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.