scaling Box (Health)

I’m about ready to let friends everywhere play my game… but the last element to add is the health bar registering damage. In another function I detect collision… but here, in the function below i should be passing the damage variable from another location into this function to calculate the actual number. I’m just tryiing to scale the object’s width from 8 down to 0 one piece at a time… Nothing is working.

private void success(){
		health.transform.lossyScale = new Vector3(Mathf.Clamp (health.transform.lossyScale.x-=hpWidth),
	//health.transform.Translate(2.0f, 0.6000001f, 0.5f);//when attacked my health changes	

I think you are looking for transform.localScale