How to make click to open Gui in Roblox Gui
Вставка
- Опубліковано 31 сер 2021
- ----- discription-----
today i will be showing you guys how to make click to open gui in roblox studio Enjoy
just fallow what i do scripts are down below
-------- close script ----------(Local script)
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
end)
---------script over ----------
----------part script-------------(Normal script)
gui = script.Parent.ScreenGUI --change to whatever name you called your GUI
function onClick(click)
gui:Clone()
gui.Parent = click.PlayerGui
end
script.Parent.ClickDetector.MouseClick:connect(onClick)
--------script over------------
make sure to subscribe and like the vedio and share
so that you friends will also watch
at 20 subs we have a special vedio! - Ігри
Can u make a tutorial when we touch a part it shows a gamepass gui
Ok
this is basiccly that just make a gamepass gui and put it inside of the part
Thank you soooo much your video really helped not like others they dont put the script in the desc and more other bad things but your video is the best it helepd a lot thank you!
Thank you so much description :D
Resolved script past in Script
local gui = script.Parent.SwordSell
local clickDetector = script.Parent.ClickDetector
function onClick(click)
local playerGui = click.PlayerGui
local newGui = gui:Clone()
newGui.Parent = playerGui
end
clickDetector.MouseClick:Connect(onClick)
I have been trying to figure this out for months, tysm. I never tried using a text button on the part
you need help?
thanks you helped me a lot i tried to open GUI with visible = true but it didn't work even if you enable visible manually but your way is brilliant!
THANK YOU SO MUCH!
Thank You!
hey I am using your script and It only lets me click it once what could I do to make it so I can click it multiple times? thanks
for
the close button there is a shorter way by like 5 letters:
script.Parent.Activated:Connect(function()
script.Parent.Visible = false
end)
Destroy() is the best because invisibling it doesnt close all way
@@pogcat3699 Destroy() literally gets rid of the whole gui
@@pogcat3699 destroy gets rid of the whole thing
its not even reopenable bruh when you close it you cant reopen it
that intro is deafening holy shit. I literally threw off my headphones because it scared the crap outta me.
thnx dude
@@Pritish_Kohli18 👍
Please help, it does indeed work but when i press the “X” is does not work. Thank you!
You made the script wrong
Guys I know it's opening I knew the problem, now understand my problem also I don't have computer yestarday it broked so plss co operate until it come back
it only open once and when you click it again it won't open any gui. (help pls)
same
but I can fix it
@@Eddypok3 could you help me fix it, pls
Note this script is only for one time use.
how can I fix that btw?
This isn't too good you can only open it once.
I only can open the gui 1 time
When i click on it
SAME
thankyousomuch
but it also only opens once
u gonna help peope with this problem or not? we can only open it once
come on thats not that hard to find and fix the error
anyways here's the fixed script
--
gui = script.Parent.ScreenGUI
function onClick(click)
local uiclone = gui:Clone()
uiclone.Parent = click.PlayerGui
end
script.Parent.ClickDetector.MouseClick:connect(onClick)
--
@@g31real thx
@@happyyx3857 You're welcome!
@@g31real UR A LEGEND
@@vilcix nice to see im able to help people months later
ty!
Hey, pls help me, I need if I click my GUI make not visible
Oh, I find answer
Click.PlayerGui.GuiName:Destroy()
First comment gets-
Hear
Pinned
Liked
Subscribed person gets
Sub to him
Like his all videos
Comment in all his vedios
god damn thats alot
My did only open 1 time then it didnt work anymore☹️ How to fix?
What’s your discord so I can show you how to do it
@netheround sended
@netheround sended
@@Devvvy02 yeah mine only opened one time
@@scriptingsubject3225 want me to help you?
it doesnt work for me how
it only shows once
doesnt work idk why
didnt work for me
it didnt work for me
did not work..
It worked for me, Watch the video before you decide to leave a false comment.
@@Aussie0liver i did use the tutorial
@@PuppyPartners What is going wrong?
i even tryed it twice
Super Idol的笑容 都没你的甜. 八月正午的阳光. 都没你耀眼. ⭐️热爱105 °C的你. 滴滴清纯的蒸馏水. ✨你不知道你有多可爱. ⚡️跌倒后会傻笑着再站起来.
bruh is there any script that work
it does work, unless your using a model, if u change the model to a union it should work.
MY EARS EXPLODED
It only opens one time.
yea
I will make another video
im deaf now
These people write scirpt wierd
STOP SCAMMING PEOPLE
It's working dude
HES NOT SCAMMING DUMBAS
onClick is blue!
if anybody needs help making it, to close again then reply to this comment and tell me your discord tag so i can help
Yo mine only opens once and when i close and click again it doesent work. pls help
@@jusglitching_yt3746 discord user?
@@Devvvy02 yes u replied. Ok my user is Mr Man#2434
@@jusglitching_yt3746 ill add you when I get home
@@Devvvy02 Nice pls note that I can't go on studio till next week Friday so if u can help me in messages that will be much appreciated
Doesnt work..
ikr
i did all the steps and it still didn't work
Same