Rotate object

Hey there everyone,

I’ve ran in to a problem: I have a Prefab that follows my mouse and I am trying to rotate it (around the Y-axis). I’ve looked everywhere and tried everything but my prefab keeps spinning around in big circles (not around the Y-axis).
This is my current rotation code:

    if(Input.GetKey(KeyCode.R)){
    				Instance.transform.Rotate(0,10,0);
    			}
`

Is anyone able to help me out?
Note: the script is attached to my camera, I think it might have something to do with this (?)
`

Edit: I fixed the script that causes my object to follow the cursor, it’s working properly now. Thanks all!

Script needs to be attached to your object, not the camera. Plus you should use Time.deltaTime:

function Update() {
    if(Input.GetKey(KeyCode.R)){ 
        transform.Rotate(0,60.0 * Time.deltaTime,0);
    } 
}