Make script[] = gameobject[].getcomponet

spawnscripts = spawns*.GetComponent();*
spawns = GameObject.FindGameObjectsWithTag(“Spawn”);

how can i make spawnscripts[] = to spawns[] gameobject script component

never mind i figure out my issue i needed to resize the array to length of object array

spawnscripts = new NetworkSpawn[spawns.Length];