I get this error on my main game script: 17:36:39.401 - ServerScriptService.MainGameScript:26: bad argument #2 to 'random' (interval is empty)
This is line 26: d1 = players[math.random(1, #players)]
Yes, players is defined. Please help? Confused. Also, I know that the second argument cannot be lower than the first one, but the second argument is always wrong even if the table is reading it, let's say 1-3.

2 comments
Please show us how [players] is defined in the script.
local players = game.Players:GetPlayers()