execute on target run scoreboard players set @s treadmill.ready 60
execute at @s on target rotated as @s run tp @s ~ ~ ~ ~ 0

execute if entity @s[tag=id1] on target run tag @s add treadmill.active1
execute if entity @s[tag=id2] on target run tag @s add treadmill.active2
execute if entity @s[tag=id3] on target run tag @s add treadmill.active3
execute if entity @s[tag=id4] on target run tag @s add treadmill.active4
execute if entity @s[tag=id5] on target run tag @s add treadmill.active5

execute if entity @s[tag=id1] run kill @e[tag=treadmill.rmb,tag=id1]
execute if entity @s[tag=id2] run kill @e[tag=treadmill.rmb,tag=id2]
execute if entity @s[tag=id3] run kill @e[tag=treadmill.rmb,tag=id3]
execute if entity @s[tag=id4] run kill @e[tag=treadmill.rmb,tag=id4]
execute if entity @s[tag=id5] run kill @e[tag=treadmill.rmb,tag=id5]

kill @s