Hey guys. I just made a script that is supposed to randomly spawn enemies at 1 of four spawn points but its only spawning at 1 spawn point and the enemy that is supposed to follow the player that was working before the spawner was added isnt working either. These are the scripts I am using. Script1. The Spawner Script Script2. The Enemy Script Code (CSharp): using System.Collections; using System.Collections.Generic; using UnityEngine; public class Spawner : MonoBehaviour { public Transform[] spawnPoints; public GameObject[] monsters; int randomSpawnPoint, randomMonster; public static bool spawnAllowed; // Use this for initialization void Start () { spawnAllowed = true; InvokeRepeating("SpawnAMonster", 0f, 1f); } // Update is called once per frame void Update() { } void SpawnAMonster() { if (spawnAllowed) { randomSpawnPoint = Random.Range(0, spawnPoints.Length); randomMonster = Random.Range(0, monsters.Length); Instantiate(monsters[randomMonster], spawnPoints[randomSpawnPoint].position, Quaternion.identity); } } } Code (CSharp): using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyController : MonoBehaviour { public float speed; public Transform target; public Vector2 SpawnPoint; // Use this for initialization void Start () { target = GameObject.FindGameObjectWithTag("Player").GetComponent<Transform>(); } // Update is called once per frame void Update () { transform.position = Vector2.MoveTowards(transform.position, target.position, speed * Time.deltaTime); } //void OnCollisionEnter2D(Collision2D collision) //if (collision.gameObject.tag == "Player") //Destroy(collision.collider.gameObject) void OnTriggerEnter2D(Collider2D col) { if(col.tag == "Player") { col.transform.position = SpawnPoint; } } } Thanks.