Alright so this is a strange one. Let's say there are 3 people on, and I run this code over and over, It will never choose player 3. Honestly have no idea why this doesn't work and would appreciate some help, Thanks.
math.randomseed(tick())
wait(1)
local allPlayers = game.Players:GetPlayers()
chosen = allPlayers[math.random(1,#allPlayers)]
print(chosen.Name)

1 comment
maybe you're just unlucky?