I want to make it so that when a new game starts 15 seconds in a person will be randomly selected to be it which will make them be on the orange team. Very much like a hide and seek script. Here's the script.
function FirstInfected()
Wait(15)
players=game.Players:GetPlayers()
while player==1 do
first_infected=players[math.random(1, #players)]
first_infected.TeamColor=Brick.new("Bright orange")
end
end
FirstInfected()
Thanks

2 comments
As long as there is one person still
Just realized that I need to fix that to players. Also for testing purposes I set it to one