tag @a remove temp
tag @s add temp 
execute as @e[tag=trapL,distance=..0.5,type=armor_stand] unless score @s trapid = @a[tag=temp,limit=1] id run effect give @a[tag=temp] levitation 1 15 true
execute as @e[tag=trapL,distance=..0.5,type=armor_stand] unless score @s trapid = @a[tag=temp,limit=1] id run particle minecraft:end_rod ~ ~ ~ 0.3 0.3 0.3 0.1 50
execute as @e[tag=trapT,distance=..0.5,type=armor_stand] unless score @s trapid = @a[tag=temp,limit=1] id run summon tnt ~ ~ ~ {Fuse:0}
execute as @e[tag=trapT,distance=..0.5,type=armor_stand] unless score @s trapid = @a[tag=temp,limit=1] id run particle minecraft:lava ~ ~ ~ 0.3 0.3 0.3 0.1 20
execute as @e[tag=trap,distance=..0.5,type=armor_stand] unless score @s trapid = @a[tag=temp,limit=1] id run kill @s
tag @a remove temp