How to set angle for a object to 50 degrees?

How to set angle of a object to 50 degrees in 3d game via script.

You also need to think about what axis you are rotating on