Scripts used :
*namehere* attachTo[*namehere*[0,0,1]];
I'm quite sure that the first 0 is the X (left to right) axis, second one is Z (forward to back) axis and the 1 is the Y (up and down) axis.
To make the object go the opposite just make the number negative.