script not working pls solve it

using UnityEngine;

public class BlockSpawner : MonoBehaviour {

public Transform[] spawnPoints;

public GameObject u;

public float timeBetweenWaves = 1f;

private float timeToSpawn = 2f;

void Update () {

	if (Time.time >= timeToSpawn)
	{
		SpawnBlocks();
		timeToSpawn = Time.time + timeBetweenWaves;
	}

}

void SpawnBlocks ()
{

	for (int i = 0; i < spawnPoints.Length; i++)
	{

		{
			Instantiate(u, spawnPoints*.position, Quaternion.identity);*
  •   	}*
    
  •   }*
    
  • }*
    }
    after one second nothing instantiate

There can be many reasons. Here are some suggestions.

  1. Check you are correctly assigning GameObject u.

2)Check time scale of your game might be 0. Set it like this.

void Start() { Time.timeScale = 1; }