How to rotate camera around children objects

I have been working anatomy type application. But i face this problem doesn’t know how to solve this issue. Whenever i try to rotate my camera around children object my script doesn’t work. Can someone help me with this. Thank you. Please view video below.

//this is the camera rotate script
using System;
using UnityEngine;
public class mongol : MonoBehaviour
{
    public GameObject Obj = null;
    public float minX = -360.0f;
    public float maxX = 360.0f;
    public float minY = -45.0f;
    public float maxY = 45.0f;
    public float sensX = 100.0f;
    public float sensY = 100.0f;
    float rotationY = 0.0f;
    float rotationX = 0.0f;
    float MouseX;
    float MouseY;
    void Update()
    {
        var x = Input.GetAxis("Mouse X");
        var y = Input.GetAxis("Mouse Y");
        if (x != MouseX || y != MouseY)
        {
            rotationX += x * sensX * Time.deltaTime;
            rotationY += y * sensY * Time.deltaTime;
            rotationY = Mathf.Clamp(rotationY, minY, maxY);
            MouseX = x;
            MouseY = y;
            Obj.transform.localEulerAngles = new Vector3(-rotationY, rotationX, 0);
        }
    }
}

How is Obj being set? When you select the skull, does the Obj reference change to that Gameobject?

nope i dont get what you saying sorry

You’re rotating the Obj gameobject in the script. How is the Obj gameobject set? There must be another script setting variables, otherwise it will always be null.

oh ok It got 304 children and 1 parent object. I have attached this rotation script to camera and i attached parent object as its target. But whenever i select children object its doesn’t zoom into center of the screen and can’t rotate selected object in the center of the screen. I share you video please help me out.
https://www.youtube.com/watch?v=hMmHvCyIvqY