Prefab instantiating

Hello, i have a problem.im working on a project and during my planning i anticipated a problem with the instantiation of an enemy prefab spawn and when you shoot or destroy one enemy they all get destroyed when i got to the portion of coding where this was a problem and i came to find i was correct with my anticipation how do i avoid this problem without creating a different script/enemy?

It seems to me your script is bad. When you Destroy an instantiated object, it should only destroy the instantiate object, not all of them. Thats the default behaviour. Instantiate doesn’t destroy all of them if you destroy one instance.