how to remove the health bar without destroying the script

so my problem is when my enemy runs out of hp its dead so its gone but its health bar is still there i want to remove it if the hp is 0 without destroying the script because if i destroy the script there will be many errors so here’s what happens

you see there’s still some of the health bar how can i atleast make it disappear when enemy hp is 0

Your image link didn’t come through to me, but one approach would be to modify your OnGUI (assuming you have one) to something like

if(itAINTDEAD)
  displayGUITexture;

You have asked a slew of reasonably simple questions in a few days, please take advantage of the tutorials.