for example: how to change z ro 100 from every other angle and dont change y or z??
Your question is unclear. But taking a wild guess, maybe this is what you mean:
Vector3 pos = transform.position;
pos.z = 100;
transform.position = pos;
sorry i meant rotacion
Well, rotations can be quirky since Euler angles are not actually a unique approximation of the true rotation. But as a first try, do basically the same thing:
Vector3 rot = transform.localEulerAngles;
rot.z = 100;
transform.localEulerAngles = rot;
thank you my dude its works