Remove bar too..
Code:
while(1)
	{
		
		if (ent_owner)
		{
			vec_set (my.x, ent_owner.x);
			my.z += 15;
			
			my.scale_x = ent_owner.health * 0.2; // skill20 aka "health" stores the health for each entity
			
		}
		else
                 { ent_remove(me); // remove bar 
                 }
		wait (1); // move "while - wait " here

	}
}



Post from mobile check for errors ok.