I realy dont know how to use layers at all but im trying to get this to not shoot at the default layer.
int allLayersExceptMine = ~(1 << gameObject.layer);
Collider[] colliders = Physics.OverlapSphere(transform.position, 5, allLayersExceptMine);
foreach (Collider other in colliders)
{
Debug.Log("Shooting at " + other.name);
}