Triggers not working

using

function OnTriggerEnter(collision : Collider){
    
     if(collision.tag == "Player")
     {
      Debug.Log("Interacted!");
     }
    
    }

It doesn’t register the collision even though I have set the object with this script to have a rigidbody and set it to “Is Trigger”. The player is tagged with the exact same tag and also has a rigidbody added to it (there is indeed a mesh with which to interact with). For the record, the object with this script has an invisible collider box around it with a smaller, visible box inside that also has a rigidbody but is NOT a trigger.

You should call for the gameobject like this:

function OnTriggerEnter(collision : Collider){
 
     if(collision.gameObject.tag == "Player")
     {
      Debug.Log("Interacted!");
     }
 
    }

I just put this same script on an invisible sphere around the player (with a kinematic rigibody component and set to “is trigger”) and it seems to work fine without conflicting with anything else.