The only way I would know how to do it would be to scale it down and then move it to the left. I don’t think you can set an anchor point for scaling, but I may be wrong.
var image : Texture;
var health : float = 10;
var maxHealth : float = 10;
function OnGUI(){
var rect : Rect = Rect(10,10,100 * health/maxHealth ,20);
GUI.DrawTexture (rect , image );
}