Scripting error.I have copied this from tutorial but get errors?

void Update () {

				Vector3 mousePosition = Input.mousePosition;
				mousePosition.z = 60;
				mousePosition = mainCamera.ScreenToWorldPoint(mousePosition);
				transform.position = Vector3. Lerp(transform.position,mousePosition,0.04f);

This is the error code I get:Assets/MouseFollow.cs(44,75): error CS1061: Type float' does not contain a definition for Mathf’ and no extension method Mathf' of type float’ could be found (are you missing a using directive or an assembly reference?

You are using Mathf.Max() in your code. This is a function which returns a float. You then try to call a function Mathf.Min() on that float. Exactly as the compiler says the float type does not have a function called Mathf.Min(). That should not be a surprise. I suspect that you have a logic error in your code. It’s not clear how you want to calculate your x and y mouse positions.