local roundtime = 6 * 60 local funct = game:GetService("ReplicatedStorage"):FindFirstChild("Functions") local Players = game:GetService("Players"):GetChildren() --[CopSelection]-- funct.isaCop.OnServerInvoke = function(player) for i = 1, 2 do --Choose 2 players CopsChosen = math.random(#Players) print(CopsChosen) wait(roundtime) table.remove(Players, CopsChosen) end end
Help please?
CopsChosen = math.random(2,#Players.Name) 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).