OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 12 Apr 2015 06:04 PM |
game.Players.PlayerRemoving:connect(function(p) table.remove(ingame,p.Name) end)
What's wrong? |
|
|
| Report Abuse |
|
|
|
| 12 Apr 2015 06:05 PM |
ingame = {}
game.Players.PlayerRemoving:connect(function(p) table.remove(ingame,p.Name) end)
game.Players.PlayerAdded:connect(function(p) table.insert(ingame,p.Name) end)
Septamology - R$0 - Tx35,380 |
|
|
| Report Abuse |
|
|
baldo46
|
  |
| Joined: 28 Jul 2008 |
| Total Posts: 1254 |
|
|
| 12 Apr 2015 06:06 PM |
| Your syntax is fine, need more details. |
|
|
| Report Abuse |
|
|
|
| 12 Apr 2015 06:06 PM |
Or, if you just want to return a table with all the players, just call game.Players:GetPlayers()
Septamology - R$0 - Tx35,380 |
|
|
| Report Abuse |
|
|
baldo46
|
  |
| Joined: 28 Jul 2008 |
| Total Posts: 1254 |
|
| |
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 12 Apr 2015 06:24 PM |
| So like ingame = game.Players:GetPlayers()? |
|
|
| Report Abuse |
|
|
baldo46
|
  |
| Joined: 28 Jul 2008 |
| Total Posts: 1254 |
|
|
| 12 Apr 2015 06:26 PM |
more like ingame == game.Players:GetPlayers();
Replace all instances of "ingame" with "game.Players:GetPlayers()" |
|
|
| Report Abuse |
|
|