This error isn’t always what it pretends to be: other syntax errors may fool the compiler and produce this error message. The rule is simple: if the line already has a semicolon, the error is something else before the line.
The script above have several errors in the two last lines, which may generate this error:
if(Input.GetButtonDown("X"));
var bullit:Instiniate (bullitPrefab) GameObject.Find("Spawn Point")transform.position Quaternion.identity;
The right thing should be something like this:
if (Input.GetButtonDown("X")){
var bullit = Instantiate(bullitPrefab, GameObject.Find("Spawn Point").transform.position, Quaternion.identity);
// the code to accelerate the "bullit" is missing, but resembles this:
bullit.rigidbody.velocity = transform.forward * speed;
Destroy(bullit.gameObject, 2.0); // kill lost bullets after 2 seconds
}
You should check the Tornado Twins worm tutorial more carefully (that’s where this came from) because there are more things missing - like the code to accelerate the projectile, for instance.