Rotate an object to face mouse?

How can I make something’s front face be turned to the direction of the mouse’s position? (Whatever the mouse is pointing at)

Here are a few lines to get you started. Create a new scene, add your object, and add this script. ‘lookFactor’ should be between 0.1 and 1.0 and determines how extreme the look rotation.

#pragma strict

var lookFactor = 0.8;

function Update () {
    var distance = (transform.position.z - Camera.main.transform.position.z) * lookFactor;
	var position = Vector3(Input.mousePosition.x, Input.mousePosition.y, distance);
	position = Camera.main.ScreenToWorldPoint(position);
	transform.LookAt(position);
}