local Scale problem

this is my first time using the local scale and it works fine but i want it to scale constantly.

var number= EnemyHealth.Elife;

function Update () {

transform.localScale = Vector3(number,1,1); } so when ever the number changes i want my objects to do the same, at the same time

Try replacing number with EnemyHealth.Elife in the localScale part? Most likely youre setting number once at the top, then it's never being updated again (as it just copies the value, not refers to the original)