but that won't work because it not an object's transform just a transform variable in a script

public GameObject[] spawningObj;
public GameObject[] insects;
public GameObject[] invierment;
public GameObject[] inviermentSingel;
public Transform player;
public int maxNPCsPerChunk;
public int maxInectsPerChunk;
public int maxInviermentalsPerChunk;
public int spawningAria;

private Transform spawningpos;

// Use this for initialization
void Start()
{
if (player == null)
player = GameObject.FindWithTag("Player").transform;

On this line you then instantiate the object - using the Transform as input. As you will find here, the overload you are using for the method is actually asking for the parent's Transform, try this instead