Instantiate help

I have a simple weapon shooting bullets (weapon and bullets were made in 3ds max) works fine, but the bullets keep facing up instead of forward, but do move forward though, any idea why?

var bullet = Instantiate(bulletprefab , GameObject.Find("BulletPrefab").transform.position ,Quaternion.identity);

That's one way of doing it that works, but although it works (sort of, as you have seen), it's much better to using the following script:

var projectile : Rigidbody;

function Update () {
    // Ctrl was pressed, launch a projectile
    if (Input.GetButtonDown("Fire1")) {
        // Instantiate the projectile at the position and rotation of this transform
        var clone : Rigidbody;
        clone = Instantiate(projectile, transform.position, transform.rotation);
        // Give the cloned object an initial velocity along the current
        // object's Z axis
        clone.velocity = transform.TransformDirection (Vector3.forward * 10);

Put it on an empty launcher just in front your gun, and parent the launcher to the gun.

I had the same problem, you can get around it by replacing Quaternion.identity with Quaternion.eulerAngles(0,0,0)

Alter the 0 of the x, y, or z to match the proper rotation and you should get it fixed.