execute if score power_off scenes matches 0 if entity @p[x=9,y=55,z=-66,distance=..2] run scoreboard players set power_off scenes 1
execute if score power_off scenes matches 1 run playsound power_off master @a ~ ~ ~ 99999999999999
execute if score power_off scenes matches 1 run title @a times 0 999 0
execute if score power_off scenes matches 1 run title @a title "\uE001"
execute if score power_off scenes matches 1 run bossbar set objectives visible false
execute if score power_off scenes matches 1 run bossbar set obj_detail visible false
execute if score power_off scenes matches 5 run playsound dialogy_fred9 master @a ~ ~ ~ 99999999999999
execute if score power_off scenes matches 10 run scoreboard players set equipment map 10
execute if score power_off scenes matches 10 run scoreboard players set phone_light map 1
execute if score power_off scenes matches 20 run title @a title ""
execute if score power_off scenes matches 160 run title @a title "\uE001"
execute if score power_off scenes matches 160 run function slender:scripts/office_power_off
execute if score power_off scenes matches 200 run title @a title ""
execute if score power_off scenes matches 200 run bossbar set objectives visible true
execute if score power_off scenes matches 200 run bossbar set obj_detail visible false

execute if score power_off scenes matches 25..40 run title @a actionbar [{"text":"Who turned off the lights!"}]
execute if score power_off scenes matches 100 run title @a actionbar [{"text":"Where's my phone!"}]

execute if score power_off scenes matches 200 run playsound phone_switch master @a ~ ~ ~ 99999999999999
execute if score power_off scenes matches 180 run scoreboard players set equipment map 1

execute if score power_off scenes matches 2..180 run tp @a 28 55 -68 -90 0
execute if score power_off scenes matches 180..200 run tp @a 11.0 55 -66 -90 0

execute if score power_off scenes matches 1..200 run scoreboard players add power_off scenes 1