Why does this code not work?

var bulletPrefab:Transform;


function Update () {

    if(Input.GetButtonDown("Fire1"))
	{
				var bullet = Instantiate(bulletPrefab, GameObject.Find("spawn").transform.position, Quaternion.identity);
	}

}

Please help :frowning:

likely it didn’t find a game object iwth the name Spawn or bulletPrefab is not assigned

XD stupid speeling mistake on Spawn (forgot the capital letter) TYVM