gamemode 2 @a[tag=Ending]
clear @a
spreadplayers 500 500 0 5 false @a[tag=Ending]
scoreboard players tag @a[tag=Ending] add Lobby
function main:lobby/lobby/teams if @a[tag=Ending]
effect @a[tag=Ending] clear
scoreboard players tag @e[name=FunctionRunner,type=armor_stand] add LobbyOptions
scoreboard players tag @e[name=FunctionRunner,tag=InGame,type=armor_stand] remove InGame
scoreboard players tag @a[tag=Ending] remove Ending