redlo43
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 4722 |
|
|
| 25 Sep 2013 09:00 PM |
users = {"redlo43", "Epicx4000"}
------------------------------------------------ game.Players.PlayerAdded:connect(function(plyr) for i = 1, #users do if(string.upper(name) == string.upper(users[i])) then return true end return false end plyr.TeamColor = BrickColor.new("Bright yellow") end end) |
|
|
| Report Abuse |
|
|
|
| 25 Sep 2013 09:02 PM |
I don't understand why would you return in this situation.
~rekt get |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
redlo43
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 4722 |
|
|
| 25 Sep 2013 09:04 PM |
how bout this
permission = {"redlo43", "Epicx4000"}
function checOkToLetIn(name) for i = 1,#permission do if(string.upper(name) == string.upper(permission[i])) then return true end end return false end
function onPlayerEntered(newPlayer) print ("Person Spawned") local human = newPlayer:findFirstChild("Backpack") if (human~= nil) then if (checOkToLetIn(human.Parent.Name)) then human.Parent.TeamColor = BrickColor.new("Bright yellow") end end end
game.Players.ChildAdded:connect(onPlayerEntered) |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 25 Sep 2013 09:06 PM |
"print ("Person Spawned") local human = newPlayer:findFirstChild("Backpack") if (human~= nil) then "
All useless, just use PlayerAdded |
|
|
| Report Abuse |
|
|