/minecraft:data modify entity @e[type=minecraft:armor_stand,sort=nearest,limit=1] Invisible set value 0
/minecraft:kill @e[type=!minecraft:player,sort=nearest,limit=1]
/minecraft:data modify entity @e[type=minecraft:armor_stand,sort=nearest,limit=1] Invisible set value 0
/minecraft:kill @e[type=!minecraft:player,sort=nearest,limit=1]