How do I call SpawnPoints,SpawnLocation,Gameobject,and spawn at certain time

I am spawning the gameObject wrong . The I want to do it is spawn the gameObject at different locations in the scene , and do spawnpoint . I want to spawn at certain time like every 5 seconds or 10 seconds at different locations. Here is my script :

using UnityEngine;
using System.Collections;

public class Script : MonoBehaviour {
public GameObject ;

	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	GameObject.SetActive;
	}

	void SpawnPoint()
	{
		
		
		
	}

	void Spawnlocation()
	{
		-=time.deltatime;
		
		
	}

}

Create a Transform array of spawn points, then depending on if you want to spawn them at random locations, use Random.Range, otherwise, just go incrementally in order with Out Of Bounds checks.

So thad look something like:
public int i = 0; //increment value to shift through your array
public Transform spawnPoints; //You would set the size, and assign each element in this array in the Inspector.
public GameObject target; //The thing you want to be spawning

void Start(){
InvokeRepeating("Spawn",10f); //Calls the "Spawn" function every 10 seconds.
}

void Spawn(){
//incremental spawning, without Random.Range.
target.transform.postion = spawnPoints*; //Spawn the target at the indexed spawn point in your array*

i++; //increment i by 1.

//Index Out Of Range check
if(i > spawnPoints.Length){
i = 0; //reset i to the first index
}
}
Then by random location spawning:
public Transform[] spawnPoints; //You would set the size, and assign each element in this array in the Inspector.
public GameObject target; //The thing you want to be spawning

void Start(){
InvokeRepeating(“Spawn”,10f); //Calls the “Spawn” function every 10 seconds.
}

void Spawn(){
//incremental spawning, without Random.Range.
target.transform.postion = spawnPoints[Random.Range(0,spawnPoints.Length)]; //Spawn the target at a random indexed spawn point in your array

}