Simple object rotation & LookAt

Hi, I am trying to simply rotate an object along the X axis while also getting the object to look at my mouse position on it’s Y axis, I can get each of these to work on there own f I comment one of the parts out but if I leave both in, the rotation doesn’t happen and only the LookAt function will continue to work. Hopefully you can see what I am trying to do? So they may be a better way to do this.

Here is my code sample:

using UnityEngine;
using System.Collections;

public class movementControler : MonoBehaviour 
	public GUIText testData;
	public GameObject sphere;
	float speed = 0.15f;

	private float mouseX, mouseY;
	private Vector3 worldPos;
	private float cameraDif;
	float xRot;

	// Use this for initialization
	void Start () 
		cameraDif = camera.transform.position.y - sphere.transform.position.y;
		xRot = sphere.transform.localRotation.x;
	// Update is called once per frame
	void Update () 
		mouseX = Input.mousePosition.x;
		mouseY = Input.mousePosition.y;

		worldPos = camera.ScreenToWorldPoint(new Vector3(mouseX,mouseY,cameraDif));

			//When using both, only LookAt works, but using them by themselves works how I want.
			sphere.transform.eulerAngles = new Vector3(-xRot++,0,0);

The way you have things structured here makes writing an answer a bit more difficult. My suggestion is that you have two game objects for your sphere, 1) an empty game object as a parent, and 2) the physical object as the child. ‘sphere’ would refer to the empty game object, and ‘sphereChild’ the physical game object. You would add the following at line 29:

worldPos.y = sphere.transform.position.y;

This change will result in the parent (empty) game object only rotating on the ‘y’ axis.

The physical object (child) would then have this happen:

xRot += speed * Time.deltaTime;
sphereChild.transform.localEulerAngles = new Vector3(xRot,0,0);