Convert Code from Unity 4 To Unity 5
<p>I am new to installed Unity 5. where i have some problem in code.      </p>

<p><code>if (transform.parent.rigidbody)
                parentMagnitude = transform.parent.rigidbody.velocity.magnitude * 0.05f;</code>   </p>