Saodo
|
  |
| Joined: 26 Jul 2011 |
| Total Posts: 1206 |
|
|
| 25 Apr 2014 05:35 PM |
Why wouldn't this work?!
Admins = "Saodo" game.StarterGui.guiAdmin.Frame.content = adminGUI
adminGUI.text = "No Admin"
game.Players.PlayerAdded:connect(function(player) if player.Name == Admins then adminGUI.Text = "Saodo" end end)
game.Players.PlayerRemoving:connect(function(platerrem) if player.name == Admins then adminGUI.Text = "No Admin" end end) |
|
|
| Report Abuse |
|
|
|
| 25 Apr 2014 05:41 PM |
Ummm...
On line 2: There isn't a property named content in frame... |
|
|
| Report Abuse |
|
|
Saodo
|
  |
| Joined: 26 Jul 2011 |
| Total Posts: 1206 |
|
|
| 25 Apr 2014 05:42 PM |
| Thats the name i have given it. I re-named it. The hierarchy is correct |
|
|
| Report Abuse |
|
|
|
| 25 Apr 2014 05:43 PM |
| Well then what is content then? A child or a property? |
|
|
| Report Abuse |
|
|
|
| 25 Apr 2014 05:45 PM |
-- um fail
Admins = {"Saodo", "admin2"} adminGUI = game.StarterGui.guiAdmin.Frame.content
adminGUI.Text = "No Admin"
game.Players.PlayerAdded:connect(function(player) if player.Name == Admins then adminGUI.Text = player.Name end end)
game.Players.PlayerRemoving:connect(function(platerrem) if player.name == Admins then adminGUI.Text = "No Admin" end end) |
|
|
| Report Abuse |
|
|