execute on target run function ws:misc/gym/weightattributes
execute at @s on target run tp @s ~ ~ ~ 90 0

execute on target run tag @s remove weight.active1
execute on target run tag @s remove weight.active2
execute on target run tag @s remove weight.active3
execute on target run tag @s remove weight.active4
execute on target run tag @s remove weight.active5

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

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

kill @s