health problem

hi I have a problem with a health script
(it’s not mine but I have changed some things

var curHealth : int = 100;
var maxHealth : int = 100;
var healthtext : GUIText;
 
function Start () 
{
    healthRegen();
}

function OnControllerColliderHit(hit : ControllerColliderHit){
 
    if (hit.gameObject.CompareTag("movingwall")){
 
        curHealth = curHealth - 10;
 
    }
}
 
function Update () 
{
    healthtext.text = curHealth + " / " + maxHealth;
 
    if(curHealth < 0 ) 
    {
        curHealth = 0;
    }
 
    if(curHealth > 100) 
    {
        curHealth = 100;
    }
    if(curHealth <= 0) 
    {
        Application.LoadLevel(Application.loadedLevel);
    }
}
 
function healthRegen () 
{
    for(i=1;i>0;i++) 
    {
        yield WaitForSeconds(0.5);
 
        if(curHealth < maxHealth) 
        {
            curHealth++;
        }
    }
}

everything looks good
but when i start my game and i walk against te movingwall nothing happens
sorry for my bad english but i’m not english
i hope that one of u can help me

Do you have a Collider on the wall that is not Trigger?