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 - Розваги
it worked, subbed
You sir earned an sub.
dude its work tysm !!
perfect for my gui
Can u make a tutorial on making the owner add ons or commands
It doesn’t work
The button won’t leave the screen
thanks
Thx
thx
it disappears when reset.
why is everything now dosen't work😢
So you made few errors, every cheater can change GUi visibility to True so he can use everything you can.
thank you so much i love you mwah *kisses*
well someone is thankful to say the least
Is it possible to add more people to the whitelist?
Yes, you need to put "or" after the first username
Aight thanks@@legocitydea3
it doesnt work when i try to add multiple people
Can you list your code here?
could you make a tutorial on how to add weapons in it?
Just use clone of the tool and set parent to ur backpack
how do i do that?
is there any yt tuts?
@@Deadlox3
@@TheThumper-bs8fk inbuilt function called :Clone() then parent it to he backpack
@@Deadlox3 if u can, can u make a YT tut on it? I was searching the :Clone and idk how to use it
It dont work
It didnt work
does it appear although you may not be the owner? or like, does it become none visible if you aren't the owner?
bruh, the title of the video should explain "OWNER only"
@@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.
@@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
@@EverythingIsClearNow not necessarily, most guis are often viewable via the button yet they can't click it because they're not the owner.
hence why i meant, can the button be viewable by others or if its only viewable by the owner.
Not good when I reset it goes away
trust turn off ResetOnSpawn
when i close the gui the open button disapears too
nvm i fixed it
How to fix
it doesnt even work for me
How do i add the stuff so its not empty
textbuttons with scripts in them
its not work bruh
it didnt work for me :
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)
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?
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)
@@cucabeludodasilvia6810 ty bro
@@cucabeludodasilvia6810this didn’t even help me.
“Local gui” at the start isn’t a real thing
@@cucabeludodasilvia6810 CARAI MAN TU É INSCRITO NO FALA DE TUDO, EU RESPEITO VC
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)
is it display or actual username
Actual username.
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
never mind I solved the issue I just used some random persons code and it worked
@@Joebutnotjoeandsomeonesgrandpa i need help closing it it won't close
script.parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
script.Parent.Parent.Parent.TextButton.Visible = true
end)@@TobyVr15
@@TobyVr15 same
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
are you is stroke you are
Can you make a list of players
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
how do i make it multiple ppl
just add or and then there name in qotations
it doesn't work
WHY THE BUTTON IS INVISIBLE
i really hope you put your username in correctly
i got scammed.. it didnt work
ignore my previous comment but make it so its
else
sg.OwnerOnly:Destroy()
so hackers wont be able to enable it
U sure?
yeah thats what i was thinking
gui isnt closing for me
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.
@@Syluxy i tried this one aswell and it wont work
I HATE THIS TUTORIAL
not helpful
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)
sg.your ui name.enabled = true
else
sg.your ui name.enabled = false