tellraw @s {"text":"There is currently a game in progress. You have become a spectator!","color":"gray"}
team join spectating
gamemode spectator @s
execute at @a[team=!lobby,team=!spectating,sort=random,limit=1] run tp @s ~ ~ ~