How to make GUI elements follow gameobjects!?

So, i need GUI elements to follow gameObjects. Basically, what i have is an array AND a list of all gameObjects with the tag “Enemy”. What i want is a health bar over each of their heads :smiley: plz help ty

try looking at this

Here’s a script titled ObjectLabel on Unity Wiki to make a GUIText follow an object in 3D space. You can use the same for other GUI elements also like GUITexture.

You can also check out the logic used there to create your own script with different requirement.