Copy all scratch cat code to clones you want to be targeted. Copy all targeter code to the thing you want to target the enemies. Have the item you want to target the clones always target the targeter as if it were an enemy. (Ex. (Forever; point towards targeter: move 5 steps)) Unfortunately I don't know how to make clones target clones, so no clash royale in scratch)
Please credit me in description if you are gonna use this! I know it looks bad, but this is about code, not art. X, Y, and Position (distance from drone) are lists that contain the variables of every clone, if it says dead, that means that clone number is dead. IAmClone is a sprite-only variable tells a clone which list item to change, when a clone dies, it sets item (IAmClone) to dead. CloneCount is a variable that says how many clones have existed since last list clear, every clone spawn changes it by 1 and sets IAmClone to CloneCount. CloneCheck scans through every item in a list to find which is the closest and sets the Closest variable to CloneCheck. Closest is a variable that tells the targeter the closest item in a list.