Ok problem solved,when objects are in a container they don't need to be spawned, just spawning the 1 object that the other is linked too will create the seconded object.
robot on destroyed--wait 2 sec
--create obj:robot on layer x at (x,y)
the problem is here,I delete it--create obj:health bar on layer x at (x,y)
please refer to the jpg on the dropbox link at the first post