Since EXP is added as the child of the enemy, when the enemy is destroyed, the exp will be destroyed with it.
So you can try to put the exp on the parent of the enemy or somewhere else.
get_parent().add_child(new_exp)
Since EXP is added as the child of the enemy, when the enemy is destroyed, the exp will be destroyed with it.
So you can try to put the exp on the parent of the enemy or somewhere else.
get_parent().add_child(new_exp)