@logintimedout asked: "I need help with some code. how do i make is so that my sprite can shoot at the closest clone of another sprite?" This is a commented example of one way to approach this problem. In this approach, each clone is assigned a unique ID on its creation. It then uses that ID to determine what row of the position lists to write to. Other clones can use these lists to determine information, like what clone is the closest and so on. Further explanations can be found inside the project.
Click and drag a clone to move it! This is to help @logintimedout by providing some example scripts.