Gun Shooting bug

Hi,

I’m new to scripting and Unity and I’m trying to make a gun shoot. I have the gun, the bullet model, the bulletspawn and the scripts. But there is something wrong with the GunShoot script and the BulletSpeed script.

Here is my Gun Shoot script:

var BulletSpawn : Transform;
var Bullet : GameObject;

function Start () {

}

function Update () {
if (Input.GetButtonDown ("Fire1"))(
Instantiate(Bullet ,BulletSpawn.transform.position , BulletSpawn.transform.rotation));
}

Here is the script that I use to set the speed of the bullet:

var BulletSpeed = 5;

function Start () {

}

function Update () {
Transform.UnityEngine.Translate(Vector3.Forward * Time.deltaTime * BulletSpeed);
}

//first script code

var BulletSpawn : Transform;
var Bullet : GameObject;

function Start () {
 
}
 
function Update () {
if (Input.GetButtonDown ("Fire1")){
var bullt : GameObject = Instantiate(Bullet ,BulletSpawn.transform.position , BulletSpawn.transform.rotation) ;
}
}


// second script code

var BulletSpeed = 5;
 
function Start () {
 
}
 
function Update () {
				transform.Translate(Vector3.forward * Time.deltaTime * BulletSpeed);
}

Consider shooting with raycasts instead of a visible projectile. Have a look here