Simple script...

Why is this not working?

static var hit = "";

function OnTriggerEnter(other : Collider){

if(other.CompareTag ("Blue")){
    hit = "Blue";
    Debug.Log("Blue");
}

if(other.CompareTag ("Red")){
    hit = "Red";
    Debug.Log("Red");

}
}

I have it attached to a trigger object that follows the main camera around...

If I remember correctly, trigger messages are not sent if it is the trigger that moves into something static. It has to be the other way around. I had a ton of headache with my characters that wouldn't fire the event once they got close to my player, if he was standing still.