The error message says that line 45 is at fault. This line presumably cannot be used if the `SpawnSpots` array is empty. I can see that in your `Start()` function you look up some spawn points, maybe that fails to find any? Maybe the array has length 0, which isn't the same as `spawnSpots` being `null`.
↧