Are the vertex 239,240 on the head of the main entity and do they
animate along with the head when it dies ?
Also,try testing if the hitbox entity's while loop is
playing or not when the main entity dies.