Killing entity outside of range across dimensions

Im trying to have it where if more than 1 entity share the same score that isnt the player to kill the entity that is outside of a radius of 1 from the player. I also need it to apply this to dimensions the player isnt in. Is this possible?

Continue to help post