scoreboard players add @a[tag=LobbyAFKBar] MusicTime 1
playsound minecraft:record.stal player @a[tag=LobbyAFKBar,score_MusicTime_min=3100] 531 88 471 1.8
scoreboard players set @a[tag=LobbyAFKBar,score_MusicTime_min=3100] MusicTime 0