Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = {}
- game.Players.PlayerAdded:connect(function(player)
- table.insert(Players, player)
- end)
- game.Players.PlayerRemoving:connect(function(player)
- table.remove(Players, player)
- end)
- for i,v in pairs(Players) do
- picked = math.random(1, math.max(i))
- end
- print(Players[picked])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement