|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 17 Mar 2012 10:33 AM |
Thanks ;)
~If it 'aint broke, don't fix it.~ |
|
|
| Report Abuse |
|
|
|
| 17 Mar 2012 06:11 PM |
Can I make it for multiple people?
~If it 'aint broke, don't fix it.~ |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 17 Mar 2012 06:51 PM |
Correction:
admins={"Name1","Name2","Name3","Name4"} |
|
|
| Report Abuse |
|
|