playsound command help

if the scoreboard is working the intended way is there any reason for this command to work in a repeating command block but not in a tick function? execute as @a if score @s lscreset matches 79.. run playsound block.respawn_anchor.deplete master @s ~ ~ ~ .5 2

Continue to help post