Unable to destroy GameObject

I have added a Character controller to player object in my game. I have written a script in which I destroy the player when the player runs into an enemy. The problem with my script is it gives error, “Can’t remove Character Controller because CharacterMotor depends on it.” And it creates & displays multiple instances of the player object on the screen.

      function OnTriggerEnter(CollidingObject : Collider)
     {

     	if(CollidingObject.tag == "Player") 
    	{
        	Debug.Log("Killed & Reborn");
	
	        Destroy(CollidingObject.GetComponent(CharacterController).GetComponent(C));
	
	        Destroy(CollidingObject);
	
	
	      var p = Instantiate(gamePlayer, rebirthPos.position, Quaternion.identity);
	
	     var camFollowScript = Camera.main.GetComponent(SmoothFollow2);
	
	     camFollowScript.target = p.transform;
}

}

How can I delete/destroy the player?

You’re having problems because you’re not destroying the player, you’re attempting to destroy the player’s Character Controller component. And, as it turns out, you’re using that.

Try just commenting out the line 8 (in this excerpt).