Help would be appreciated

I have a sort of FPS going on, but when I fire the bullet doesn’t go anywhere. But when you back up, it’s floating in the air.
This is the script for my projectile:
var projectile : Rigidbody;
var speed = 20;
function Update()
{
if( Input.GetButtonDown( “Fire1” ) )
{
var instantiatedProjectile : Rigidbody = Instantiate(
projectile, transform.position, transform.rotation );
instantiatedProjectile.velocity =
transform.TransformDirection( Vector3( 0, 0, speed ) );
Physics.IgnoreCollision( instantiatedProjectile. collider,
transform.root.collider );
}
}

http://forum.unity3d.com/threads/143875-Using-code-tags-properly Also, please use a more descriptive topic title.

–Eric