01 | local roundtime = 6 * 60 |
02 |
03 | local funct = game:GetService( "ReplicatedStorage" ):FindFirstChild( "Functions" ) |
04 |
05 | local Players = game:GetService( "Players" ):GetChildren() |
06 | -- [ CopSelection ] -- |
07 |
08 | funct.isaCop.OnServerInvoke = function (player) |
09 | for i = 1 , 2 do --Choose 2 players |
10 | CopsChosen = math.random(#Players) |
11 | print (CopsChosen) |
12 | wait(roundtime) |
13 | table.remove(Players, CopsChosen) |
14 | end |
15 | end |
Help please?
1 | CopsChosen = math.random( 2 ,#Players.Name) |
2 | print (CopsChosen) |
Also what table are you removing, I can't seem to find one. If there is no table then get rid of the line table.remove(Players,CopsChosen).