Make a sprite follow another sprite

I need help. I have a sprite called “Square” and a sprite called “Particles” and they both have a different script. I need “Particles” to follow “Square” with a short delay.
So basically what i need to know is how to fetch the position of a sprite (not the parent sprite) with a script.
I need to fetch the position (X Y and Z) of the “Square” sprite in the script for “Particles.”

Have a public variable of the appropriate type (for what you need Transform), then drag the other object into that.

// Inside particle object script
public Transform square;

After dragging the object into the corresponding field in the inspector you now have a reference to if you can access.
Be aware that there is a particle system in Unity itself, if you just want your square to spray particles behind it.