Can someone fix this? it's so simplem that i can't see how it could not work.

var EnemyPrefab:Transform;

function Update () {

if(Input.GetButtonUp("Jump"))
{
var Enemy = Instantiate(GameObject.Find("MSBoD"), GameObject.find("Spawnpoint").transform.position, Quaternion.identity);
}

}

is there an error? that would be helpful to know.. the second "find" needs to be capitalized..

1 Answer

1

It works, thanks