| |
|
| |
|
pketny
|
  |
| Joined: 27 Dec 2010 |
| Total Posts: 1162 |
|
|
| 16 Jan 2017 03:04 PM |
http://wiki.roblox.com/index.php?title=API:Class/Players/GetPlayers
returns a table of all players currently in the lobby |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2017 03:04 PM |
| local p = game.Players:GetPlayers()??? |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2017 03:05 PM |
local PlayerList = {}
for i, v in pairs(game.Players:GetPlayers()) do PlayerList[v] = v end
game.Players.PlayerAdded:connect(function(plr) PlayerList[plr] = plr end)
game.Players.PlayerRemoving:connect(function(plr) if (PlayerList[plr]) then PlayerList[plr] = nil end end)
If money grew on trees... It would be as valuable as leaves. | Twitter: @TwisterRBLX |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2017 03:07 PM |
| don't ever do twisty's example |
|
|
| Report Abuse |
|
|
pketny
|
  |
| Joined: 27 Dec 2010 |
| Total Posts: 1162 |
|
|
| 16 Jan 2017 03:08 PM |
PlayerList[plr] = plr
Lol? |
|
|
| Report Abuse |
|
|
lskid
|
  |
| Joined: 07 Dec 2012 |
| Total Posts: 89 |
|
|
| 16 Jan 2017 03:15 PM |
game.Players:GetChildren() will return a table of all players in the game.
Lskid |
|
|
| Report Abuse |
|
|
pketny
|
  |
| Joined: 27 Dec 2010 |
| Total Posts: 1162 |
|
|
| 16 Jan 2017 03:17 PM |
game.Players:GetChildren()
Players:GetChildren()
GetChildren()
Children
TRIGGERED |
|
|
| Report Abuse |
|
|
| |
|