generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Admin GUI

Previous Thread :: Next Thread 
Alexrocksdude is not online. Alexrocksdude
Joined: 19 Jan 2011
Total Posts: 3828
17 Mar 2012 10:25 AM
I have one, how do I make it so it works/shows for admins only?

~If it 'aint broke, don't fix it.~
Report Abuse
Bannana97 is not online. Bannana97
Joined: 22 Jun 2008
Total Posts: 10215
17 Mar 2012 10:26 AM
Player = game.Players.LocalPlayer

if Player.Name == "" then
-- code
end
Report Abuse
RobloxNewb01 is not online. RobloxNewb01
Joined: 16 Apr 2011
Total Posts: 348
17 Mar 2012 10:27 AM
Put it in lighting.

Put this code into workspace:

admin = game.Lighting["Admin Gui"] -- Change the name to what your gui name is.

game.Players.ChildAdded:connect(function(newC)
if newC.Name == "alexrocksdude" then
admin:clone().Parent = newC.PlayerGui
else
print("nil")
end
end)
Report Abuse
Alexrocksdude is not online. Alexrocksdude
Joined: 19 Jan 2011
Total Posts: 3828
17 Mar 2012 10:33 AM
Thanks ;)

~If it 'aint broke, don't fix it.~
Report Abuse
Alexrocksdude is not online. Alexrocksdude
Joined: 19 Jan 2011
Total Posts: 3828
17 Mar 2012 06:11 PM
Can I make it for multiple people?

~If it 'aint broke, don't fix it.~
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
17 Mar 2012 06:51 PM
Yes, I just made one by coincidence.

admins={"Name1","Name2"

for i=1,#admins do
if script.Parent.Parent.Parent.Parent.Name==admins[i] then

--Before the equals, put how to get to the owner of the GUI

[AdminCode]

end
end
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
17 Mar 2012 06:51 PM
Correction:

admins={"Name1","Name2","Name3","Name4"}
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image