How I can change script of MouseLook, Use GetComponent() instead.

  1. function Start () {
  2. if (rigidbody)
  3. rigidbody.freezeRotation = true;
  4. originalRotation = transform.localRotation;
    }

//WARNING!!! ‘UnityEngine.Component.rigidbody’ is obsolete. Property rigidbody has been deprecated. Use GetComponent() instead. (UnityUpgradable)

To access a rigidbody you need to use get component now.

Rigidbody myRigidbody = transform.GetComponent<Rigidbody>();