scoreboard players add .startingTimer temp 1
execute if score .startingTimer temp matches 1 at @a run playsound minecraft:block.note_block.banjo master @p ~ ~ ~ 100 1
execute if score .startingTimer temp matches 2 at @a run playsound minecraft:block.note_block.banjo master @p ~ ~ ~ 100 1.2
execute if score .startingTimer temp matches 3 at @a run playsound minecraft:block.note_block.banjo master @p ~ ~ ~ 100 1.4
execute if score .startingTimer temp matches 4 at @a run playsound minecraft:block.note_block.banjo master @p ~ ~ ~ 100 1.6
execute if score .startingTimer temp matches 5 at @a run playsound minecraft:block.note_block.banjo master @p ~ ~ ~ 100 1.8

title @a times 5 10 5
execute if score .startingTimer temp matches 1 run title @a title [{"text":"5","color":"#3cff00"}]
execute if score .startingTimer temp matches 2 run title @a title [{"text":"4","color":"#beff25"}]
execute if score .startingTimer temp matches 3 run title @a title [{"text":"3","color":"#fffc3d"}]
execute if score .startingTimer temp matches 4 run title @a title [{"text":"2","color":"#ff8138"}]
execute if score .startingTimer temp matches 5 run title @a title [{"text":"1","color":"#ff5e00"}]

execute if score .startingTimer temp matches 6 at @a run playsound minecraft:entity.firework_rocket.large_blast ambient @p ~ ~ ~ 1 1
execute if score .startingTimer temp matches 6 run function subchronos:game/starting/ini

execute if score .startingTimer temp matches ..5 run schedule function subchronos:lobby/start_button/starting 1s