error spawning random prefabs (C# Unity)

Not sure what you did above, but that’s not code tags. A+ for effort though! :slight_smile:

How to use code tags: Using code tags properly

Either way, line 68 above is certainly not valid:

// THIS IS WRONG:
lastPrefabIndex = randomIndex Index;
1 Like