execute if score @p checkpointbool matches 0 run spawnpoint @s ~ ~ ~ ~ 
execute if score @p checkpointbool matches 0 run playsound block.note_block.harp music @p ~ ~ ~ 200000000000 2
execute if score @p checkpointbool matches 0 run title @p times 10 40 10
execute if score @p checkpointbool matches 0 run title @p actionbar {"text":"Checkpoint!","color":"gold"}
execute if block ~ ~ ~ light_weighted_pressure_plate[power=1] run scoreboard players set @p checkpointbool 1