scoreboard players set @s generic_timer 1600

title @a[distance=..250] times 5 50 5
title @a[distance=..250] subtitle ["",{"text":"ITS TIME FOR ","color":"yellow"},{"text":"RED LIGHT","color":"red"},{"text":" GREEN LIGHT","color":"green"}]
title @a[distance=..250] title ""

execute store result score @s generic_timer2 run random value 120..240

tag @s add go

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