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!
  • Ігри

КОМЕНТАРІ • 123

  • @bread4k
    @bread4k 2 роки тому +2

    Can u make a tutorial when we touch a part it shows a gamepass gui

  • @selenaah8599
    @selenaah8599 2 роки тому

    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!

  • @Saykator
    @Saykator Рік тому

    Thank you so much description :D

  • @DeadSkyOficial
    @DeadSkyOficial 10 місяців тому +4

    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)

  • @iriu2403
    @iriu2403 2 роки тому +2

    I have been trying to figure this out for months, tysm. I never tried using a text button on the part

    • @Devvvy02
      @Devvvy02 2 роки тому

      you need help?

  • @atusmp411
    @atusmp411 Рік тому +1

    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!

  • @man-qq6yh
    @man-qq6yh Рік тому

    THANK YOU SO MUCH!

  • @_u_k._
    @_u_k._ 2 роки тому

    Thank You!

  • @dinobuzzer9600
    @dinobuzzer9600 2 місяці тому

    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

  • @zekaplayz2166
    @zekaplayz2166 2 роки тому +4

    for
    the close button there is a shorter way by like 5 letters:
    script.Parent.Activated:Connect(function()
    script.Parent.Visible = false
    end)

    • @pogcat3699
      @pogcat3699 Рік тому

      Destroy() is the best because invisibling it doesnt close all way

    • @frost_spirit3314
      @frost_spirit3314 Рік тому

      @@pogcat3699 Destroy() literally gets rid of the whole gui

    • @cataboku3551
      @cataboku3551 10 місяців тому

      @@pogcat3699 destroy gets rid of the whole thing

  • @noam_1327
    @noam_1327 Рік тому +2

    its not even reopenable bruh when you close it you cant reopen it

  • @screamingblackhole
    @screamingblackhole 2 роки тому +3

    that intro is deafening holy shit. I literally threw off my headphones because it scared the crap outta me.

  • @aaaaa-px2wp
    @aaaaa-px2wp Рік тому +1

    Please help, it does indeed work but when i press the “X” is does not work. Thank you!

  • @Pritish_Kohli18
    @Pritish_Kohli18  Рік тому +1

    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

  • @mxwires7676
    @mxwires7676 2 роки тому +3

    it only open once and when you click it again it won't open any gui. (help pls)

  • @larritheonlylobster7667
    @larritheonlylobster7667 Рік тому

    Note this script is only for one time use.

  • @billsites8190
    @billsites8190 2 роки тому +2

    This isn't too good you can only open it once.

  • @deadlyhacker991
    @deadlyhacker991 Рік тому +1

    I only can open the gui 1 time
    When i click on it

  • @bobo-fi4gg
    @bobo-fi4gg 2 роки тому

    thankyousomuch

    • @bobo-fi4gg
      @bobo-fi4gg 2 роки тому

      but it also only opens once

  • @happyyx3857
    @happyyx3857 Рік тому +1

    u gonna help peope with this problem or not? we can only open it once

    • @g31real
      @g31real Рік тому +4

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

    • @happyyx3857
      @happyyx3857 Рік тому

      @@g31real thx

    • @g31real
      @g31real Рік тому

      @@happyyx3857 You're welcome!

    • @vilcix
      @vilcix Рік тому

      @@g31real UR A LEGEND

    • @g31real
      @g31real Рік тому

      @@vilcix nice to see im able to help people months later

  • @RandomGuy80211
    @RandomGuy80211 7 місяців тому

    ty!

  • @Scr1pted
    @Scr1pted Рік тому

    Hey, pls help me, I need if I click my GUI make not visible

    • @Scr1pted
      @Scr1pted Рік тому

      Oh, I find answer
      Click.PlayerGui.GuiName:Destroy()

  • @Pritish_Kohli18
    @Pritish_Kohli18  2 роки тому +1

    First comment gets-
    Hear
    Pinned
    Liked
    Subscribed person gets
    Sub to him
    Like his all videos
    Comment in all his vedios

  • @AttackFilm-hf2dx
    @AttackFilm-hf2dx 2 роки тому +6

    My did only open 1 time then it didnt work anymore☹️ How to fix?

    • @Devvvy02
      @Devvvy02 2 роки тому

      What’s your discord so I can show you how to do it

    • @Devvvy02
      @Devvvy02 2 роки тому

      @netheround sended

    • @Devvvy02
      @Devvvy02 2 роки тому

      @netheround sended

    • @scriptingsubject3225
      @scriptingsubject3225 2 роки тому

      @@Devvvy02 yeah mine only opened one time

    • @Devvvy02
      @Devvvy02 2 роки тому

      @@scriptingsubject3225 want me to help you?

  • @feras8042
    @feras8042 10 місяців тому

    it doesnt work for me how

  • @BlackHoleCoreFacilityYT
    @BlackHoleCoreFacilityYT Місяць тому

    it only shows once

  • @mantaboard4271
    @mantaboard4271 Рік тому

    doesnt work idk why

  • @isr5
    @isr5 Рік тому

    didnt work for me

  • @Gamerdude113
    @Gamerdude113 7 місяців тому

    it didnt work for me

  • @PuppyPartners
    @PuppyPartners Рік тому +2

    did not work..

    • @Aussie0liver
      @Aussie0liver Рік тому

      It worked for me, Watch the video before you decide to leave a false comment.

    • @PuppyPartners
      @PuppyPartners Рік тому

      @@Aussie0liver i did use the tutorial

    • @Aussie0liver
      @Aussie0liver Рік тому

      @@PuppyPartners What is going wrong?

    • @PuppyPartners
      @PuppyPartners Рік тому

      i even tryed it twice

  • @kingdelemon9132
    @kingdelemon9132 2 роки тому +4

    Super Idol的笑容 都没你的甜. 八月正午的阳光. 都没你耀眼. ⭐️热爱105 °C的你. 滴滴清纯的蒸馏水. ✨你不知道你有多可爱. ⚡️跌倒后会傻笑着再站起来.

  • @Lumosr
    @Lumosr Рік тому +1

    bruh is there any script that work

    • @LuvLettr
      @LuvLettr Рік тому

      it does work, unless your using a model, if u change the model to a union it should work.

  • @ymmot248
    @ymmot248 Рік тому

    MY EARS EXPLODED

  • @noshhix
    @noshhix 2 роки тому +5

    It only opens one time.

  • @tobiasvennberg5867
    @tobiasvennberg5867 Рік тому

    im deaf now

  • @lartorgames
    @lartorgames Рік тому

    These people write scirpt wierd

  • @PuppyPartners
    @PuppyPartners Рік тому

    STOP SCAMMING PEOPLE

  • @Devvvy02
    @Devvvy02 2 роки тому +4

    if anybody needs help making it, to close again then reply to this comment and tell me your discord tag so i can help

    • @jusglitching_yt3746
      @jusglitching_yt3746 2 роки тому +1

      Yo mine only opens once and when i close and click again it doesent work. pls help

    • @Devvvy02
      @Devvvy02 2 роки тому

      @@jusglitching_yt3746 discord user?

    • @jusglitching_yt3746
      @jusglitching_yt3746 2 роки тому

      @@Devvvy02 yes u replied. Ok my user is Mr Man#2434

    • @Devvvy02
      @Devvvy02 2 роки тому

      @@jusglitching_yt3746 ill add you when I get home

    • @jusglitching_yt3746
      @jusglitching_yt3746 2 роки тому

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

  • @jacobscootz2024
    @jacobscootz2024 2 роки тому

    Doesnt work..