$function $(function)
data remove entity @s interaction

#Stops if its start button
    execute if entity @s[tag=start_button] run return fail

#Animation
    tag @e[tag=lobby.button_root,type=block_display,tag=!animating] add animation_pause

    execute at @s positioned ~ ~-1 ~ as @e[tag=lobby.button_root,type=block_display,distance=0..0.5] at @s run tag @s add animating
    execute at @s positioned ~ ~-1 ~ as @e[tag=lobby.button_root,type=block_display,distance=0..0.5] at @s run tag @s remove animation_pause
    execute at @s positioned ~ ~-1 ~ as @e[tag=lobby.button_root,type=block_display,distance=0..0.5] at @s run tag @s remove animation_loop

    schedule clear subchronos:lobby/options/button/k/default/check_pause_0
    schedule clear subchronos:lobby/options/button/k/default/check_pause_1
    schedule clear subchronos:lobby/options/button/k/default/check_pause_2
    schedule clear subchronos:lobby/options/button/k/default/check_pause_3
    schedule clear subchronos:lobby/options/button/k/default/check_pause_4
    schedule clear subchronos:lobby/options/button/k/default/check_pause_5
    schedule clear subchronos:lobby/options/button/k/default/check_pause_6

    execute at @s positioned ~ ~-1 ~ as @e[tag=lobby.button_root,type=block_display,distance=0..0.5] at @s run function subchronos:lobby/options/button/k/default/keyframe_0

#SFX
    execute at @s run playsound minecraft:block.heavy_core.fall ambient @a ~ ~ ~ 0.7 0
    execute at @s run playsound minecraft:block.cherry_wood_button.click_on ambient @a ~ ~ ~ 1 0.8