#Entering
tellraw @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=Lobby] ["",{"text":"Freezun","color":"aqua","bold":"true"},{"text":" » ","color":"dark_gray"},{"text":"You have entered the Tester room. You won't be able to play the game until you leave it.","bold":false,"color":"aqua"}]
clear @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=Lobby] dye

clear @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=Lobby] minecraft:snowball
clear @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=Lobby] minecraft:barrier
scoreboard players reset @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=Lobby] GiveSecret
scoreboard players tag @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=Lobby] remove TestforSecretItem
scoreboard players tag @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=Lobby] remove TestforSecretItem1

scoreboard players tag @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=Lobby] remove Lobby
execute @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=!LobbyAFKTesterRoom] ~ ~ ~ function main:scoreboard/lobby if @a[tag=!LobbySpectate]
execute @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=!LobbyAFKTesterRoom] ~ ~ ~ scoreboard players tag @a[tag=!LobbySpectate] add LobbyAFKTesterRoom

#Entering
tellraw @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=LobbyAFK] ["",{"text":"Freezun","color":"aqua","bold":"true"},{"text":" » ","color":"dark_gray"},{"text":"You have entered the Tester room. You won't be able to play the game until you leave it.","bold":false,"color":"aqua"}]
clear @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=LobbyAFK] dye

clear @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=LobbyAFK] minecraft:snowball
clear @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=LobbyAFK] minecraft:barrier
scoreboard players reset @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=LobbyAFK] GiveSecret
scoreboard players tag @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=LobbyAFK] remove TestforSecretItem
scoreboard players tag @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=LobbyAFK] remove TestforSecretItem1

scoreboard players tag @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=LobbyAFK] add LobbyAFKBar
scoreboard players tag @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=LobbyAFK] remove LobbyAFK

#Entering
execute @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=LobbySpectate] ~ ~ ~ tellraw @s[tag=!LobbyAFKTesterRoom] ["",{"text":"Freezun","color":"aqua","bold":"true"},{"text":" » ","color":"dark_gray"},{"text":"You have entered the Tester room. You won't be able to play the game until you leave it.","bold":false,"color":"aqua"}]
execute @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=LobbySpectate] ~ ~ ~ clear @s[tag=!LobbyAFKTesterRoom] dye

execute @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=LobbySpectate] ~ ~ ~ clear @s[tag=!LobbyAFKTesterRoom] minecraft:snowball
execute @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=LobbySpectate] ~ ~ ~ clear @s[tag=!LobbyAFKTesterRoom] minecraft:barrier
execute @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=LobbySpectate] ~ ~ ~ scoreboard players reset @s[tag=!LobbyAFKTesterRoom] GiveSecret
execute @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=LobbySpectate] ~ ~ ~ scoreboard players tag @s[tag=!LobbyAFKTesterRoom] remove TestforSecretItem
execute @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=LobbySpectate] ~ ~ ~ scoreboard players tag @s[tag=!LobbyAFKTesterRoom] remove TestforSecretItem1

execute @a[x=534,y=96,z=498,dx=1,dy=3,dz=1,tag=LobbySpectate] ~ ~ ~ scoreboard players tag @s[tag=!LobbyAFKTesterRoom] add LobbyAFKTesterRoom

#Exiting
tellraw @a[x=533,y=99,z=501,dx=1,dy=3,dz=1,tag=LobbyAFKTesterRoom] ["",{"text":"Freezun","color":"aqua","bold":"true"},{"text":" » ","color":"dark_gray"},{"text":"You have left the Tester room. You are now able to play the game.","bold":false,"color":"aqua"}]
stopsound @a[x=533,y=99,z=501,dx=1,dy=3,dz=1,tag=LobbyAFKTesterRoom]
scoreboard players tag @a[x=533,y=99,z=501,dx=1,dy=3,dz=1,tag=LobbyAFKTesterRoom] add Lobby
scoreboard players tag @a[x=533,y=99,z=501,dx=1,dy=3,dz=1,tag=LobbySpectate] remove Lobby
function main:scoreboard/lobby if @a[x=533,y=99,z=501,dx=1,dy=3,dz=1,tag=LobbyAFKTesterRoom]
scoreboard players tag @a[x=533,y=99,z=501,dx=1,dy=3,dz=1,tag=LobbyAFKTesterRoom] remove LobbyAFKTesterRoom