As transform.rotation is a quaternion not an euler angle (its made of 4 components not 3 and they change between -1 and 1 I believe) it is quite difficult to use transform.rotation to set anything yourself, unless you are simply setting one object to have the same rotation as another object.