Hello, I am trying to do make a good game but why is my Choosing Random Player script is wrong?
Script:
local randomPlayer = game.Players:GetChildren()[math.random(1, #game.Players:GetChildren())]
Output:
20:09:07.220 - ServerScriptService.Core.GameScript:12: bad argument #2 to 'random' (interval is empty)

2 comments
I know what that error means hold on
ok