rigidbody.isKinematic = false Does NOT Work

In my script, I have on Input.GetMouseButtonUp(0) set rigidbody.isKinematic to false. But, my object does not work properly. In the inspector isKinematic changes to false, but gravity doesn’t affect it. When I change it in the inspector, however it works.

How can I fix this?

EDIT:

Code:

 if(Input.GetMouseButtonUp(0)){

    jarInst.collider.enabled = true;
    jarInst.rigidbody.isKinematic = false;
    jarInst = null;

    }

It does work, but in the meantime the rigidbody has fallen asleep, so setting isKinematic to false isn’t enough, you need to wake it up again using WakeUp().

You have it the wrong way around. isKinematic = true will prevent your object to be affected by physics.