I get this error for the Instantiate line: No appropriate version of 'UnityEngine.Object.Instantiate' for the argument list '(String, UnityEngine.Vector3, UnityEngine.Quaternion)' was found. I don't know what it means and how to fix it. Do you?
oh, you should replace the string "CELSPDR" with an actual prefab reference. like this: var spiderPrefab:GameObject; function Start() { for(var i:int = 0; i < SpiderAmount; i++) { Instantiate (spiderPrefab, Vector3 (2.0, 0, 0), Quaternion.identity); } } Unity doesn't know what you mean by a string there. it needs an actual GameObject. create your spider prefab and link it to this script in the inspector by dragging it from your project window into the inspector window.