execute @a[tag=SpectatorInit] ~ ~ ~ kill @e[c=1,r=2,tag=HologramAFK,type=armor_stand]
scoreboard teams join Spectators @a[tag=SpectatorInit]
scoreboard players tag @a[tag=SpectatorInit] remove InGame
gamemode 3 @a[tag=SpectatorInit]
clear @a[tag=SpectatorInit]
tellraw @a[tag=SpectatorInit] ["",{"text":"Freezun","color":"aqua","bold":"true"},{"text":" » ","color":"dark_gray"},{"text":"You are now ","color":"aqua"},{"text":"spectating","color":"dark_aqua"},{"text":"!","color":"aqua"},{"text":" ","italic":true},{"text":"Click ","italic":true,"color":"aqua"},{"text":"[","italic":true,"color":"aqua","clickEvent":{"action":"run_command","value":"/trigger GoBackToLobby set 1"},"hoverEvent":{"action":"show_text","value":"Click"}},{"text":"here","italic":true,"color":"dark_aqua","clickEvent":{"action":"run_command","value":"/trigger GoBackToLobby set 1"},"hoverEvent":{"action":"show_text","value":"Click"}},{"text":"]","italic":true,"color":"aqua","clickEvent":{"action":"run_command","value":"/trigger GoBackToLobby set 1"},"hoverEvent":{"action":"show_text","value":"Click"}},{"text":" to go back to the lobby.","italic":true,"color":"aqua"}]
execute @a[tag=SpectatorInit] ~ ~ ~ tp @s @r[tag=Starting,type=!armor_stand]
execute @a[tag=SpectatorInit] ~ ~ ~ tp @s @r[tag=InGame,type=!armor_stand]
execute @a[tag=SpectatorInit] ~ ~ ~ playsound minecraft:item.chorus_fruit.teleport master @s
scoreboard players tag @a[tag=SpectatorInit] add Spectator
scoreboard players tag @a[tag=SpectatorInit] remove SpectatorInit