Help on "Mouse X" & "Mouse Y"

var lookSensivity : float = 5;
var yRotation : float;
var xRotation : float;
var currentYRotation : float;
var currentXRotation : float;
var yRotationV : float;
var xRotationV : float;
var lookSmoothDamp : float = 0.1;

function Update () 
{
  yRotation += Input.GetAxis("Mouse X") = lookSensivity;
  xRotation -= Input.GetAxis("Mouse Y") = lookSensivity;
  
  currentXRotation = Mathf.SmoothDump(currentXRotation, xRotation, xRotationV, lookSmoothDump);
  currentYRotation = Mathf.SmoothDump(currentYRotation, yRotation, yRotationV, lookSmoothDump);
  
  transform.rotation = Quaternion.Euler(xRotation, yRotation, 0);
}

On this script I got these errors:

Assets/Standard Assets/Scripts/Lookscripted.js(12,29): BCE0049: Expression ‘Input.GetAxis(‘Mouse X’)’ cannot be assigned to.

Assets/Standard Assets/Scripts/Lookscripted.js(13,29): BCE0049: Expression ‘Input.GetAxis(‘Mouse Y’)’ cannot be assigned to.

Assets/Standard Assets/Scripts/Lookscripted.js(15,80): BCE0005: Unknown identifier: ‘lookSmoothDump’.

Assets/Standard Assets/Scripts/Lookscripted.js(16,80): BCE0005: Unknown identifier: ‘lookSmoothDump’.

Help, please.

A good example on how to use it can be found on Unity Docs

var horizontalSpeed : float = 2.0;
var verticalSpeed : float = 2.0;
function Update () {
	// Get the mouse delta. This is not in the range -1...1
	var h : float = horizontalSpeed * Input.GetAxis ("Mouse X");
	var v : float = verticalSpeed * Input.GetAxis ("Mouse Y");
	transform.Rotate (v, h, 0);
}

in your case something like

var yRotation: float;
var xRotation : float;
function Update () {
	// Get the mouse delta. This is not in the range -1...1
	var h : float = yRotation* Input.GetAxis ("Mouse X");
	var v : float = xRotation* Input.GetAxis ("Mouse Y");
	transform.Rotate (v, h, 0);
}

Assets/Standard Assets/Scripts/Lookscripted.js(12,29) & Assets/Standard Assets/Scripts/Lookscripted.js(13,29) tell you exactly what the problem is.

You cannot do this

yRotation += Input.GetAxis("Mouse X") = lookSensivity;
  xRotation -= Input.GetAxis("Mouse Y") = lookSensivity;