Move different object on the same axis in correlation to another object's axis

Please know that you can edit your posts; you don’t need to make multiple posts within minutes.

Also, when posting code, please use code-tags .