Assign rotation of GameObject by using a Vector3 as variable

Hi, I’m trying to assign a rotation of a gameobject using the rotation of another gameobject wich i assigned its rotation in a vector3 variable as static. I can get the
rotation coordinates with other script accesing to the first one but i don’t know how to set the rotation with these coordinates once i get them. Is it possible?

Vector3’s are for position. Use quaternions instead.