How to make an Owner Only GUI! | Roblox

Поділитися
Вставка
  • Опубліковано 11 лют 2023
  • You need to name your GUI the exact way it is in the script.
    If you want to add multiple just do this
    if player.Name == "darknightwindtodark" or "Orange" or "Bot" then
    --------------------
    Script:
    local sg = game:GetService("StarterGui")
    game.Players.PlayerAdded:Connect(function(player)
    if player.Name == "darknightwindtodark" then -- Put The owners name here
    sg.OwnerOnly.Enabled = true
    else
    sg.OwnerOnly.Enabled = false
    end
    end)
    --------------------
    Music:
    Blue Boi - Lakey Inspired
    Better Days - Lakey Inspired
    How to
    Roblox Studio
    GUI
    OwnerOnly
    OWNERONLY
    Admin gui
    admin
  • Розваги

КОМЕНТАРІ • 84

  • @Solvedsatyr
    @Solvedsatyr 16 годин тому

    it worked, subbed

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

    You sir earned an sub.

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

    dude its work tysm !!

  • @user-ch9yo7br5y
    @user-ch9yo7br5y 9 місяців тому

    perfect for my gui

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

    Can u make a tutorial on making the owner add ons or commands

  • @manglextheanimator1987
    @manglextheanimator1987 6 місяців тому +1

    It doesn’t work
    The button won’t leave the screen

  • @M.Cat_Gaming
    @M.Cat_Gaming 10 місяців тому

    thanks

  • @moonnyliu3452
    @moonnyliu3452 9 місяців тому

    Thx

  • @Sansremasterd21
    @Sansremasterd21 3 дні тому

    thx

  • @anlyxe
    @anlyxe 6 місяців тому

    it disappears when reset.

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

    why is everything now dosen't work😢

  • @konvro0
    @konvro0 17 днів тому

    So you made few errors, every cheater can change GUi visibility to True so he can use everything you can.

  • @viggohansen.
    @viggohansen. Рік тому

    thank you so much i love you mwah *kisses*

    • @wedgeh34d
      @wedgeh34d 3 місяці тому

      well someone is thankful to say the least

  • @cooldude815doesthings14
    @cooldude815doesthings14 6 місяців тому +1

    Is it possible to add more people to the whitelist?

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

    it doesnt work when i try to add multiple people

  • @idkwhattoputhere-o2s
    @idkwhattoputhere-o2s Рік тому +1

    could you make a tutorial on how to add weapons in it?

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

      Just use clone of the tool and set parent to ur backpack

    • @TheThumper-bs8fk
      @TheThumper-bs8fk 5 місяців тому

      how do i do that?
      is there any yt tuts?
      @@Deadlox3

    • @Deadlox3
      @Deadlox3 5 місяців тому +1

      @@TheThumper-bs8fk inbuilt function called :Clone() then parent it to he backpack

    • @TheThumper-bs8fk
      @TheThumper-bs8fk 5 місяців тому

      @@Deadlox3 if u can, can u make a YT tut on it? I was searching the :Clone and idk how to use it

  • @gordansikes7499
    @gordansikes7499 14 днів тому

    It dont work

  • @HakMert
    @HakMert 3 дні тому

    It didnt work

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

    does it appear although you may not be the owner? or like, does it become none visible if you aren't the owner?

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

      bruh, the title of the video should explain "OWNER only"

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

      @@EverythingIsClearNow by this i meant, if only the owner could see the gui on the screen, rather than it being only a owner clickable gui which others can see.

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

      @@equixel if it’s owner, nobody can see it except for the owner, a.k.a. the person who has their ID in the code

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

      @@EverythingIsClearNow not necessarily, most guis are often viewable via the button yet they can't click it because they're not the owner.

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

      hence why i meant, can the button be viewable by others or if its only viewable by the owner.

  • @YooBroxDD.
    @YooBroxDD. 11 місяців тому

    Not good when I reset it goes away

    • @JohnDoe-fo7yl
      @JohnDoe-fo7yl 11 місяців тому

      trust turn off ResetOnSpawn

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

    when i close the gui the open button disapears too

  • @StickBug-nq5sl
    @StickBug-nq5sl 10 місяців тому

    How do i add the stuff so its not empty

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

      textbuttons with scripts in them

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

    its not work bruh

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

    it didnt work for me :

    • @fireflamegamer23
      @fireflamegamer23 9 місяців тому

      here's the code for frame
      -- Get the TextButton and Frame
      local textButton = script.Parent -- replace with the actual path if not the same
      local frame = script.Parent.Parent.Frame -- replace with the actual path if not the same
      -- Hide the frame initially
      frame.Visible = false
      -- Function to run when the button is clicked
      local function onButtonClick()
      -- Toggle the visibility of the frame
      frame.Visible = not frame.Visible
      end
      -- Connect the function to the button's MouseClick event
      textButton.MouseButton1Click:Connect(onButtonClick)

  • @random_dude-m69
    @random_dude-m69 6 місяців тому +1

    I tried to put multiple names but it dint work. My script:
    local sg = game:GetService("StarterGui")
    game.Players.PlayerAdded:Connect(function(player)
    if player.Name == "ExampleNameOne, ExampleNameTwo " then -- Put The owners name here
    sg.OwnerOnly.Enabled = true
    else
    sg.OwnerOnly.Enabled = false
    end
    end)
    You can see that I put a comma and then a space to put another name. How do I fix it?

    • @cucabeludodasilvia6810
      @cucabeludodasilvia6810 6 місяців тому +2

      U dont need to make all of this just use "or"
      local gui = game:GetService("StarterGui")
      game.Players.PlayerAdded:Connect(function(player)
      if player.Name == "Player1" or player.Name == "Player2" then
      sg.OwnerOnly.Enabled = true
      else
      sg.OwnerOnly.Enabled = false
      end
      end)

    • @random_dude-m69
      @random_dude-m69 6 місяців тому

      @@cucabeludodasilvia6810 ty bro

    • @manglextheanimator1987
      @manglextheanimator1987 6 місяців тому

      @@cucabeludodasilvia6810this didn’t even help me.
      “Local gui” at the start isn’t a real thing

    • @random_dude-m69
      @random_dude-m69 6 місяців тому

      @@cucabeludodasilvia6810 CARAI MAN TU É INSCRITO NO FALA DE TUDO, EU RESPEITO VC

    • @user-lc1ce2hu7j
      @user-lc1ce2hu7j Місяць тому

      use
      local sg = game:GetService("StarterGui")
      game.Players.PlayerAdded:Connect(function(player)
      if player.Name == "ExampleNameOne", or "ExampleNameTwo" then -- Put The owners name here
      sg.OwnerOnly.Enabled = true
      else
      sg.OwnerOnly.Enabled = false
      end
      end)

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

    is it display or actual username

  • @Joebutnotjoeandsomeonesgrandpa

    I want to make the Gui openable and closeable, I did they same code multiple times and it's not working at all I've tried writing it many times but it won't work if you can tell me a list of problems why this isn't working the only one that's working is closing the GUI

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

      never mind I solved the issue I just used some random persons code and it worked

    • @TobyVr15
      @TobyVr15 11 місяців тому

      @@Joebutnotjoeandsomeonesgrandpa i need help closing it it won't close

    • @M.Cat_Gaming
      @M.Cat_Gaming 10 місяців тому

      script.parent.MouseButton1Click:Connect(function()
      script.Parent.Parent.Visible = false
      script.Parent.Parent.Parent.TextButton.Visible = true
      end)@@TobyVr15

    • @zlzhez6667
      @zlzhez6667 8 місяців тому

      @@TobyVr15 same

  • @user-xi7mv7ir4u
    @user-xi7mv7ir4u 9 місяців тому

    Hey who can help me to game macking? [I am mobile i need pc player] i nerde game a knife wars please help o give then admin please

    • @octolotl
      @octolotl 8 місяців тому

      are you is stroke you are

  • @user-sn8eo5de7m
    @user-sn8eo5de7m 10 місяців тому

    Can you make a list of players

    • @EnvirosAreTheBestLondon
      @EnvirosAreTheBestLondon 8 місяців тому

      for a list do:
      Local sg = game:GetService("StarterGui")
      game.Players.PlayerAdded:Connect(function(player)
      if player.Name == "user" or "user" or "user" then -- Put The owners name here
      sg.OwnerOnly.Enabled = true
      else
      sg.OwnerOnly.Enabled = false
      end
      end)
      -----------
      it also shows in desc

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

    how do i make it multiple ppl

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

      just add or and then there name in qotations

  • @Ultimate1000
    @Ultimate1000 4 місяці тому +3

    it doesn't work

  • @Bacon_Roblox2.0
    @Bacon_Roblox2.0 Рік тому

    WHY THE BUTTON IS INVISIBLE

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

      i really hope you put your username in correctly

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

    i got scammed.. it didnt work

  • @castipro
    @castipro 5 місяців тому +2

    ignore my previous comment but make it so its
    else
    sg.OwnerOnly:Destroy()
    so hackers wont be able to enable it

  • @zlzhez6667
    @zlzhez6667 8 місяців тому

    gui isnt closing for me

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

      if u whana it to close on the open button do this:
      script.Parent.MouseButton1Click:Connect(function()
      script.Parent.Parent.Parent.Panel.Visible = not script.Parent.Parent.Parent.Panel.Visible
      end)
      then edit a bit.

    • @ZenyGamingStuffIdk
      @ZenyGamingStuffIdk 20 днів тому

      @@Syluxy i tried this one aswell and it wont work

  • @s.c.panims4167
    @s.c.panims4167 2 місяці тому

    I HATE THIS TUTORIAL

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

    not helpful

  • @user-wd9ym8wt8i
    @user-wd9ym8wt8i Місяць тому

    ir doesnt work my
    code local gui = game:GetService("StarterGui")
    game.Players.PlayerAdded:Connect(function(player)
    if player.Name == "Ghbest4" or player.Name == "Hdeerlate" then
    sg.OwnerOnly.Enabled = true
    else
    sg.OwnerOnly.Enabled = false
    end
    end)

    • @Solvedsatyr
      @Solvedsatyr 16 годин тому

      sg.your ui name.enabled = true
      else
      sg.your ui name.enabled = false