bullets are spawning under me and they don't move

my bullets are spawning under my first person controller and the dont move ,

could someone help me ???

this is my script

var projectile : Transform;
var bulletSpeed : float = 20;

function Update () {
// Put this in your update function
if (Input.GetButtonDown(“Fire1”)) {

// Instantiate the projectile at the position and rotation of this transform
var clone : Transform;
clone = Instantiate(projectile, transform.position, transform.rotation);

// Add force to the cloned object in the object's forward direction
clone.rigidbody.AddForce(clone.transform.forward * shootForce);
}

}

It completely stays in the eact same spot? Does your bullet have a rigid body? (if not, you should also be seeing “can’t set speed” errors.)

The second G*gle search entry for “Unity fire bullet” has an example of using an empty to say where bullet should come from, instead of under your feet: Trouble with script to fire a bullet from a handgun - Questions & Answers - Unity Discussions.

Unsurprisingly, there are many, many other old, answered, questions about every aspect of shooting bullets.