If you watch the video, he eliminated the y when following by using the y position of the player in the lookat function. So you should be able to do that for the x position instead and it will only follow on the y and z, effectively rotating on the x axis of the player.