I made a new tutorial video guys th-cam.com/video/2H5dbivz5p8/w-d-xo.html Model: www.roblox.com/library/14405119459/OPEN-CLOSE-GUI Script: Open GUI LocalScript: local frame = script.Parent.Parent.Frame script.Parent.MouseButton1Click:Connect(function() frame.Visible = true end) Close GUI LocalScript: local frame = script.Parent.Parent script.Parent.MouseButton1Click:Connect(function() frame.Visible = false end)
Im subbing too you just helped me make a teleporter gui for my friends game! Also i have to do the teleporting now but the GUI opening and closing is done thanks to you!@@Jez_rblx
it still works if you do script.Parent.MouseButton1Click:Connect(function() script.Parent.Parent.PlaceHolder.Visible = true end) script.Parent.MouseButton1Click:Connect(function() script.Parent.Parent.Visible = false end)
Open GUI LocalScript: local frame = script.Parent.Parent.Frame script.Parent.MouseButton1Click:Connect(function() wait(5) --replace "5" with how many seconds you wanna delay frame.Visible = true end)
@@Jez_rblx Hey question please,The Open Works for me but when i open it there isnt the X button (exit) although i put the script in it and i also tried putting it in the frame but it didnt work. please explain how 👍❤
this really helped me, but how can i make a button turn invisible when i open a frame and then visible when i close the frame? (when i start it should be visible) please reply me with the script
Open GUI LocalScript: local frame = script.Parent.Parent.Frame game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(key) if key == "e" then --Replace e with your key frame.Visible = true end end) Close GUI LocalScript: local frame = script.Parent.Parent game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(key) if key == "e" then --Replace e with your key frame.Visible = false end end)
how do you make it so that instead of the "frame" it's an image label? Edit: nevermind I found out you just have to change the image label name to Frame
You can add multiple local scripts to the same button so make another script that opens another GUI and then make another script that opens another GUI and it should open and close all of them at once when you click the button
Late reply. I came across a problem where you could open the same gui over and over again, but fixed it quickly. If you need it still, here's the code: --put this inside the button local [name] = script.Parent script.Parent.MouseButton1Click:Connect(function() [name].Visible = false end)
I made a new tutorial video guys th-cam.com/video/2H5dbivz5p8/w-d-xo.html
Model:
www.roblox.com/library/14405119459/OPEN-CLOSE-GUI
Script:
Open GUI LocalScript:
local frame = script.Parent.Parent.Frame
script.Parent.MouseButton1Click:Connect(function()
frame.Visible = true
end)
Close GUI LocalScript:
local frame = script.Parent.Parent
script.Parent.MouseButton1Click:Connect(function()
frame.Visible = false
end)
Ok!
=r
Finally a tutorial that actually works. THANK YOU!!!
Hischildfr ikr
Finally, a tutorial that actually works. Thank you
You're welcome!
2 years later and it still works perfectly!
this tutorial was made in 2025
@@notC00lkid1.0 ur wildin bruh
7 months later and it still works! Thanks for the video, This helped me to make a tool shop!
2 years later and it still works perfectly!
Thank you!
You're welcome!
roses are red, violets are blue
you stole a comment
thats what bots do
bro i swear this guy is our lord and savior of all scripts (this guy is godlike at scripts)
FINALLY SOMEONE WHO WORKED
2 years later shi works fine, btw youre the first one to actually have a working one
I finally found a tutorial that actually works! :D Thank you so much!
Glad I could help!
Dude you earned my sub!
Thank you!
WHEN I TOUCH OPEN GUI AND ITS NOT WORKING
same
edit: nvm it does now
FINALLY ONE THAT WORKS!!! NEW SUB
Welcome!
This actually works! Thank you! You earned a sub!
Welcome!
i got the closing button to work, but not the opening button. I copy and pasted the open script into my imagine button, and it didnt work.
Yo, tysm! The tutorial worked, you earned a subscriber.
Thanks for the sub!
Im subbing too you just helped me make a teleporter gui for my friends game! Also i have to do the teleporting now but the GUI opening and closing is done thanks to you!@@Jez_rblx
Thanks for subbing! Appreciate that!
This works! I’ve been struggling for hours, tysm❤
bro.
@@Hevsarete huh
You're welcome 👍
this actually works thank you so much!
THANK YOU!!!!!
Finally a short tutorial that is functional and easy for beginners. Ty
youre below beginner if u dont know how to make that
so im a piece of garbage burnt to atoms?@@danix_toe_alt
it still works if you do
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.PlaceHolder.Visible = true
end)
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
end)
OML U SAVED THE DAY TYSM
ty
didnt work
finally one that actually works
This help me so much, keep making more of these videos! I’m subscribed to you ❤😊
Thanks for subbing!
@@Jez_rblxIt still not work
thanks this helped a lot!
super simple and easy to follow! thanks!
Glad you liked it!
Yo thanks for the vid it helped me out a lot! :)
no problem!
Thanks for the tutorial. I found it useful!
You're welcome!
Do you know why the frame starts out open when I play the game?
2025 in the title and i see « 2 years ago » 🤔
You earnt a sub
best gui tutorial every other one is awful this one perfect
Nice intro 😎
Thank you very much, helped great!!! :)))))
You're welcome!
omgg its working thank u soo much!
You're welcome!
Thank you so much!!!
You're welcome!
thanks man, it really helped me!
no problem!!
Exelent Great coding for beginers ty :)
excelent*
Excellent*@@Skilled609
@@tiagorojas2890 *Excellent.
how do you get the menu youre opening to be invisible when you start the game, like before you press the open button?
do what i did in 2:09 - 2:13
@@Jez_rblxthanks so much! Not sure how I managed to skip that step lmao
Thanks It WAS SOO GOOD !
No problem!!
thanks alot it works perfectly !
Glad it helped
best tutorial ever thanks!
You're welcome!
How do u do it for scrolling frames?
SCRIPTS
Open GUI LocalScript:
local frame = script.Parent.Parent.
script.Parent.MouseButton1Click:Connect(function()
frame.Visible = true
end)
Close GUI LocalScript:
local frame = script.Parent.Parent
script.Parent.MouseButton1Click:Connect(function()
frame.Visible = false
end)
The parent part makes function to any frame
pls help it says rendering is puased for debugging
try this create.roblox.com/docs/studio/debugging
Same
kan i put this in my skripthub? for mobile but i want an open/close gui buttom but idk hoe
u earned a sub!!
fr
does it only work with text buttons bc i did the exact same and copied the script and stuff but i used an image button to open it
Thank you so much i finaly can made by myself!
You're welcome 😊
When I click the button to open the gui it doesn't work, what did I do wrong?
You might've inserted a regular script rather than a local script
Thanks found it so easy!
its working bro new sub
New Sub!
You're welcome 👍
after you make the gui when you want to creat passes can you you still use text button or you will create a frame under the frame?
how to make it only po up once?
not sure if you still reply but how can i make it so the open gui button disappears when pressed and comes back when i press the gui x button
Script:
Open GUI LocalScript:
local frame = script.Parent.Parent.Frame
script.Parent.MouseButton1Click:Connect(function()
frame.Visible = true
script.Parent.Visible = false
end)
Close GUI LocalScript:
local frame = script.Parent.Parent
script.Parent.MouseButton1Click:Connect(function()
frame.Visible = false
script.Parent.Parent.TextButton.Visible = true
end)
I’m good at makeing GUIs but suck at Scripting so I just take code from TH-cam videos. Thank you for the code
You're welcome!
Thank you this helped alot!
No problem!
Bro u saved my life thanks
No problem 👍
BRO YOUR THE GOAT
tysm
this helped me alot
You're welcome!
What if we use image buttons, and the frame is a scrolling frame. I can't get it to work for me.
Open GUI LocalScript:
local frame = script.Parent.Parent.
script.Parent.MouseButton1Click:Connect(function()
frame.Visible = true
end)
Close GUI LocalScript:
local button = script.Parent.Parent
script.Parent.MouseButton1Click:Connect(function()
button.Visible = false
end)
@@Jez_rblx tysm!
How do you make it so when you press it it opens and if you press it again it closes?
if ur like me and cant find the script this is it
local frame = script.Parent.Parent
script.Parent.MouseButton1Click:Connect(function())
frame.Visible = false
end
Thank you so much
It doesnt work for me and when i hover over it with my mouse it wont do the hover over button effect pls help
you may created a textlabel instead of textbutton
@@Jez_rblx oh thats what it was thank you
thanks now i can continue making my phone
Hope it success!
great video and tutorial thank you for making it easy now I can have a Gui
You're welcome!
Is there a way to make Frame popup delay after they click the button?
Open GUI LocalScript:
local frame = script.Parent.Parent.Frame
script.Parent.MouseButton1Click:Connect(function()
wait(5) --replace "5" with how many seconds you wanna delay
frame.Visible = true
end)
@@Jez_rblx thank you!
@@Sperellow you're welcome 😊
it works tysm!!!
You're welcome!
I like how at the end of the title it says “2024” (this year) when this was 2022
it still works on 2024 thats why
@@Jez_rblx Hey question please,The Open Works for me but when i open it there isnt the X button (exit) although i put the script in it and i also tried putting it in the frame but it didnt work. please explain how 👍❤
OMG it works
You're welcome 👍
When I make the frame invisible it make the button to open it invisible to
The open button shouldn't be inside the frame. Drag it out.
A question, I have an obby game and it is a little annoying that it appears and appears and is there any way to make it only appear once?
Thanks!
You're welcome 👍
you probally saveed my life
W tutorial
Thank you SO much! Ima sub!
Thanks for subbing!
but yea this is the only video that has ever helped me with this
When I make my frame not visible it also makes my gui button not visible, what did I do wrong?
You should not put the button in the frame
i have the same problem where do i put it @@Jez_rblx
@@Jez_rblxyou put it in the frame
Thank you so much
You're welcome! You can join our discord server and get notified when a new video is released. discord.gg/apEM98SuT3
A lot of these people say it doesn’t work… It is literally because they did something wrong that is their fault, not yours! It does work! 😅
what if it only opens one time but once u close it it wont open again?
Did you typed the script correctly?
@@Jez_rblx i figure it out i had 2 content frames so i just needed to add an extra .Parent for it to work but ty!!
Tysm works
You're welcome!
this really helped me, but how can i make a button turn invisible when i open a frame and then visible when i close the frame? (when i start it should be visible)
please reply me with the script
Open GUI LocalScript:
local frame = script.Parent.Parent.Frame
local frame1 = script.Parent.
script.Parent.MouseButton1Click:Connect(function()
frame.Visible = true
frame1.Visible = false
end)
Close GUI LocalScript:
local frame = script.Parent.Parent
local frame1 = script.Parent.
script.Parent.MouseButton1Click:Connect(function()
frame.Visible = false
frame1.Visible = true
end)
@@Jez_rblx thanks so much
Does it work with Image button? bc for me it doesnt work
Yes it does.
@@Jez_rblx alr well i alr figured it out
in my game, the cursor is not visible, yet in other games it is, how can i fix that
can u make it so there is a keybind to open and close the meu. thx
Open GUI LocalScript:
local frame = script.Parent.Parent.Frame
game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(key)
if key == "e" then --Replace e with your key
frame.Visible = true
end
end)
Close GUI LocalScript:
local frame = script.Parent.Parent
game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(key)
if key == "e" then --Replace e with your key
frame.Visible = false
end
end)
@@Jez_rblx thank you
Second script:
local frame = script.Parent.Parent
script.Parent.MouseButton1Click:Connect(function()
frame.Visible = false
end)
ya now the main menu will be good
tbh i dont understand, my tiny brain can't comprehend this magic
how do you make it so that instead of the "frame" it's an image label?
Edit: nevermind I found out you just have to change the image label name to Frame
the correct script:
local Frame = script.Parent.Frame
script.Parent.MouseButton1Click:Connect(function()
Frame.Visible = true
end)
----------------------------------------------------------
local frame = script.Parent.Parent
script.Parent.MouseButton1Click:Connect(function()
frame.Visible = false
end)
I have a question it works but idk how to make it visible when I click my first gui
it work thanks
Nice!
thank the creator!
so how could i click the open gui in a first person game
clipachamp?
Do you think you can make this but where you have a bunch of gui's you can open and close with 1 button
You can add multiple local scripts to the same button so make another script that opens another GUI and then make another script that opens another GUI and it should open and close all of them at once when you click the button
It doesn't work.
It affected the StarterGui but not the PlayerGui.
It works tysm but I'm wondering how to do different open gui boxes without tons of frames coming out
Late reply. I came across a problem where you could open the same gui over and over again, but fixed it quickly. If you need it still, here's the code:
--put this inside the button
local [name] = script.Parent
script.Parent.MouseButton1Click:Connect(function()
[name].Visible = false
end)
idk how to set this up
cause i pasted to that gui and it dosent work
it doesn't work but i new one for it btw i have an image label but can i make it open that to?
Use Imagebutton instead