Cant figure out how to spawn enemies at same locations

I have 6 spawners which i attached this script to but i only know how to spawn enemies at random locations .I want them to spawn at EmptyGameObjects location

public float spawnTime = 3f;
public GameObject[] objects;
public GameObject Player;
public Transform spawnLocations;

private void Update()
{
    SpawnRandom();
}

public void SpawnRandom()
{
    Instantiate(objects[Random.Range(0, objects.Length - 1)]);
}

    void Start()

{
    InvokeRepeating("Spawn", spawnTime, spawnTime);
    
}

}`

You can do something like:

public Transform[] spawnLocations;

void SpawnAtARandomSpawnSpot()
{
Instantiate(objects[Random.Range(0, objects.Length -1)], spawnLocations[Random.Range(0, spawnLocations.Length - 1)].position);
}

that’ll randomly pick a spot of your spawnLocations,

From the code you posted above, it doesn’t actually put a position in there, so if they are “randomly” being placed, look into the code on the object itself, as there is something in the Start/Awake that’s moving it.

@Cynikal It gives me an error on the letter “L” after spawnLocations?

Assets/Scripts/EnemySpawner.cs(27,113): error CS1061: Type `UnityEngine.Transform[]' does not contain a definition for `L' and no extension method `L' of type `UnityEngine.Transform[]' could be found. Are you missing an assembly reference?

I dont really know this code or arrays because i recently learned that arrays even exist and the script is put together from a peace of code I found on a post about enemy spawning at random positions.
Instantiate(objects[Random.Range(0, objects.Length - 1)], spawnLocations[Random.Range(0, spawnLocations.L - 1)].position);