spawn at random spawnpoint

how would I change the spawnpoint variable of my health script to spawn at any one of my level’s spawnpoint objects instead of a fixed spawnpoint

var PointCube : Transform;
var spawneffect : Transform;
var SpawnPoint : Transform;
var respawn : boolean = false;
var health:float = 90;

function Damage(dmg:float){
health -= dmg;
}

function Update (){
if(health <=0){

Instantiate (PointCube,transform.position,transform.rotation);

transform.position = SpawnPoint.position;

Instantiate (spawneffect,transform.position,transform.rotation);

var audio: AudioSource = GetComponent.();
audio.Play();
audio.Play(44100);

health += 100;
}

}

What I would do is make a spawnpoint tag in Unity, and then when I want to find a spawn to spawn something at.

    Vector3[] spawnPoints = GameObject.FindGameObjectsWithTag("spawnPoint").transform.position;
    Instantiate(gameObject, spawnPoints[Random.Range(0, spawnPoints.Length - 1)], Quaternion.identity;

The first line creates an array of type Vector3, and finds all Game Objects with tag spawn point’s position. The second spawns the prefab at a spawn point randomly.

@LightWell

It’s not working, I keep getting an insert semicolon error even though ther is ones present