Why delete scene with enemy when bullet hits the enemy he dies

hello
i have main scene to which i have added player(CharacterBody2d) and enemy(Node2d) ,player shoots bullets
In main scene script coppypastes enemy and many enemy moving in circles
I need it when the bullet hits the enemy he dies
In scene enemy i have enemy which moves along the path2d

extends Node2D


var enemyscen = preload("res://enemy.tscn")

func _on_timer_timeout():
	var instance = enemyscen.instantiate()
	add_child(instance)

script in main scene

what i would do is create a new test project and see if you can determine when two objects collide.

in this picture, i have a character body that lands on a static body. when i selected “Add Script…” to Me-CharacterBody2D, godot even provided a simple example script.