What is wrong with this line of code?

ok sorry also @yaustar well i have your attention can you help with the rotation thing

SetRotation is for quaternions. It looks like you are trying to use it as Euler angles, in which case maybe you should be using set/getEulerAngle?

Also bare in mind that you want to be sending X, Y and Z angles, not just the Y.