So I am trying to make a script choose a random player but it is not working! I put
local players = game.Players:GetPlayers()
local player = players[math.random(1,#players)]
print(player)
18:38:06.232 ServerScriptService.Script:3: invalid argument #2 to 'random' (interval is empty) - Server - Script:3
