execute @a[tag=Lobby] ~ ~ ~ scoreboard players tag @s[score_AFKTimer_min=6,tag=!AFK] add AFKInit {OnGround:1b}
execute @a[tag=LobbyAFK] ~ ~ ~ scoreboard players tag @s[score_AFKTimer_min=6,tag=!AFK] add AFKInit {OnGround:1b}
execute @a[tag=LobbySpectate] ~ ~ ~ scoreboard players tag @s[score_AFKTimer_min=6,tag=!AFK] add AFKInit {OnGround:1b}
execute @a[tag=AFKInit] ~ ~ ~ scoreboard players tag @s[tag=Lobby] add LobbyAFK
execute @a[tag=AFKInit] ~ ~ ~ scoreboard players tag @s[tag=LobbySpectate] add LobbyAFK
scoreboard players tag @a[tag=AFKInit] remove Lobby
scoreboard players tag @a[tag=AFKInit] remove LobbySpectate
#scoreboard players tag @a[tag=AFKInit] remove LobbyAFKBar
#scoreboard players tag @a[tag=AFKInit] remove LobbyAFKTesterRoom
#scoreboard players tag @a[tag=AFKInit] remove LobbyAFKHowToPlay
scoreboard players reset @a[tag=AFKInit] AFKTimer
function main:disconnect/disconnectfunctions/mainalways if @a[tag=AFKInit]
clear @a[tag=AFKInit]
execute @a[tag=AFKInit] ~ ~ ~ summon armor_stand ~ ~1.3 ~ {CustomName:"§3[§bAFK§3]",CustomNameVisible:1,Tags:["HologramAFK"],NoGravity:1b,Small:1,Invisible:1}
scoreboard players tag @a[tag=AFKInit] add AFK
scoreboard players tag @a[tag=AFKInit] remove AFKInit