execute unless entity @a[tag=checkpoint2] run title @a times 5 20 10
execute unless entity @a[tag=checkpoint2] run title @a subtitle {"text":"Checkpoint!","bold":true,"color":"yellow"}
execute unless entity @a[tag=checkpoint2] run title @a title {"text":" "}
execute unless entity @a[tag=checkpoint2] run execute as @a[team=A,tag=!owner] at @s run spawnpoint @s 270 105 2 -107
execute unless entity @a[tag=checkpoint2] run execute as @a[team=B,tag=!owner] at @s run spawnpoint @s 270 105 3 -70
execute unless entity @a[tag=checkpoint2] run execute as @a[team=B,tag=!owner] at @s run particle dust 0.000 1.000 0.000 1 ~ ~1 ~ 0.4 0.4 0.4 1 500 normal
execute unless entity @a[tag=checkpoint2] run execute as @a[team=A,tag=!owner] at @s run particle dust 0.765 0.000 1.000 1 ~ ~1 ~ 0.4 0.4 0.4 1 500 normal
execute unless entity @a[tag=checkpoint2] run execute as @a[tag=!owner] at @s run playsound minecraft:block.note_block.pling master @s ~ ~ ~ 999 1.5
execute unless entity @a[tag=checkpoint2] run execute as @a[tag=!owner] at @s run playsound minecraft:entity.item.pickup master @s ~ ~ ~ 999 0
execute unless entity @a[tag=checkpoint2] run execute as @a[tag=!owner] at @s run playsound minecraft:entity.wither.shoot master @s ~ ~ ~ 999 2