Disable isKinematic on children

I’m doing a mouse collision with one object and I want to enable isKinematic of his children…

Any idea to do that ? Am I doing Wrong ? This script is on Gameobject that I want to take the children

public class MouseDrag : MonoBehaviour 
{
	public GameObject fruit;

	void Start()
	{
		fruit = GameObject.Find("Fruta");
	}
	Vector3 screenPoint;
	Vector3 offset;
	void OnMouseDown()
	{
		screenPoint = Camera.main.WorldToScreenPoint(gameObject.transform.position);
		
		offset = gameObject.transform.position - Camera.main.ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, screenPoint.z));

	}
	
	void OnMouseOver()
	{

		if(transform.gameObject.tag == "Player")
		{
			print ("worked");
			gameObject.GetComponentInChildren<Rigidbody>().isKinematic = false;

			//rigidbody.isKinematic = false;
		}


	}

Cache an array of all the rigidbody of the children with [GetComponentsInChildren][1]

Something like:

Rigidbody[] bodys = GetComponentsInChildren<Rigidbody>(); //Or GetComponentsInChildren<Rigidbody>(true) to get inactive children

for(var i=0;i<bodys.Length;i++)
{
  bodys*.isKinematic = false;*

}
I havent tested it, but it can give you an idea.
[1]: Unity - Scripting API: Component.GetComponentsInChildren

it’s easy make this:

		Rigidbody[] bodies = gameObject.GetComponentsInChildren<Rigidbody>();
		for (int i=0; i < bodies.Length; i++){
			bodies*.isKinematic = true;*
  •  }*