How to set .isKinematic=false; on object in a script that is not attached to the object

Well I have been using this line all the time when enable or disable a component.
It works with all components that can be flagged on and off. But Rigidbody2d doesn’t have that kind of a thing and I want to disable isKinematic if the mouse is clicked.

The script should look something like this.

function OnMouseDown() {
Debug.Log("I have no Idea what Im doing");


So what am I missing?

isKinematic is not the component - RigidBody is the component, and isKinematic is a property of that component:

GameObject.Find("Player").GetComponent(RigidBody).isKinematic = false;