I have Shoulder, the real bone that the ik is set with, and shoulderreal, which is the bone that the shoulder piece is actually rigged to.

I want to make it so that the 'shoulderreal' follows the shoulder bone, but not in the z axis, so that it only moves up and down. 

Is this possible? Please, i'm a retard. I just want proper robotic joints.