How to make a OPEN/CLOSE GUI in Roblox Studio

preview_player
Показать описание
How to also add sound effect on the button:

script:

local SGui = script.Parent
local Frame = SGui:WaitForChild("Frame")
local Button = SGui:WaitForChild("TextButton")

Button.MouseButton1Up:Connect(function()
Frame.Visible = not Frame.Visible
end)
Рекомендации по теме
Комментарии
Автор

for those saying it didn't work, double check that you have the script created inside the screengui itself, the text button also created in the screengui itself, along with the frame in the SGui itself, and for the script you need to rename where it says ("Frame") to the name of the frame if you have it named as something else

TheDomshere
Автор

love how it was so short and sweet! I'm a dev in training and loved this tut

Indianadoll
Автор

i was having so much trouble handling it that I even asked my friend for help... thank you very much, you saved my life!

arthurAnim
Автор

wait, a 1 minute tutorial, no intro or outro, very quick, with the code in the description, am I dreaming ?and it even works, thanks dude <3

tiktokhq
Автор

We need more people like this, straight to the objective, not some long intro.

ChrisArevalo-bcvy
Автор

Aye W it works, you just had to name the parts correctly and W song choice 😭🔥

SnowsHusband
Автор

BRO TYSM! This is 2 years old and it STILL works! TYSM!

MariaJFluffy
Автор

You are one of the best devs ive ever seen, you deserve a sub!!!❤❤

CorkysAviation
Автор

so amazing its so easy simple and fast to make it helped a lot you got yourself another sub

TheAftermath
Автор

real life saver thank you all the other tutorials did not work

BabuWasHere
Автор

Thanks, tutorial was quick and short. It works well! 🥳

GalaxyCat_gtag
Автор

Been using this gui for a year now and i gotta say, its the best gui ive ever used.

JohnDoe
Автор

Saw like all your videos, are straight up fire man, quick and easy to do, dont stop uploading haha

MaazIsCool_
Автор

Fast, Simple, and Easy. Very well done. You earned a sub. And keep up the work! :D

SkulliesMC
Автор

we need more 1-second intros like this person

Snake-llxm
Автор

Thanks a lot I have seen 100 videos but none of them worked but this tutorial is very helpful ❤

IJ_gaming_official
Автор

This really helped with my new game! Thank you very much for this easy tutorial.

GummyCyan
Автор

this youtuber DESERVES WAY MORE SUBCRIBERS

coolpanama
Автор

For those who are having trouble, You have to create it like this.
Screen Gui is the parent and it should have 3 childs Textbutton and Frame and LocalScript the reason why it is local script is bc Local only means the player/entity who clicks it get the effect.

marcusperez
Автор

it works its so easy. instead put the script in the group of gui instead of just leaving it in starter gui

f_YousatyNBoy