execute store result score @s generic_timer2 run random value 60..160
tag @s add stop
tag @s remove go

title @a[distance=..250] times 5 50 5
title @a[distance=..250] subtitle ["",{"text":"STOP","color":"dark_red"}]
title @a[distance=..250] title ""

playsound minecraft:entity.enderman.hurt player @a ~ ~ ~ 50 0.5

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

# grace
scoreboard players set @s generic_timer3 10