execute as @a[distance=..250] run function pctf:music/redlight_greenlight/stop

title @a[distance=..250] times 5 50 5
title @a[distance=..250] subtitle ["",{"text":"THATS ALL FOLKS!","color":"yellow"}]
title @a[distance=..250] title ""
tag @s add end

playsound minecraft:entity.player.levelup neutral @a ~ ~ ~ 50 0

kill @s