scoreboard players add #timer ghost_vars 1
execute if score #timer ghost_vars matches 6000..12000 run function ghosts:try_scare
execute if score #timer ghost_vars matches 12001.. run function ghosts:scare