Advertisement
SlyHades66

Mmmmm

Mar 27th, 2016
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. local Players = {}
  2.  
  3. game.Players.PlayerAdded:connect(function(player)
  4. table.insert(Players, player)
  5. end)
  6.  
  7. game.Players.PlayerRemoving:connect(function(player)
  8. table.remove(Players, player)
  9. end)
  10.  
  11. for i,v in pairs(Players) do
  12. picked = math.random(1, math.max(i))
  13. end
  14. print(Players[picked])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement