Collision with Tag isn't working? Simple question.

I’m trying to get Penelope to collide with the gear. When she collides I should get a gear point and then destroy gear. Plus it should say Gear Collision! in the console. Idk what’s wrong. I’m pretty new to coding.
Thanks

   public var gearPoints : int;
    
     
      
        function OnCollisionEnter (collision : Collision) {
       
        if (collision.gameObject.tag == "Gear") 
        {
          gearPoints += 1; 
          Debug.Log("Gear Collision!");
        }
     
    }

Collision only happens if one of the items has a rigid body. Does Penelope have a collider? Does the gear have a Rigidbody?

Look at the chart at the bottom to see when you get a collision:

I figure it out thanks