Instantiated object does not inherit rotation.

So I am trying to shoot a bullet in relation to my characters rotation, but I am stuck. The bullet will always go in the forward direction.

Here is my code.

var Bullet : Rigidbody2D;
var BulletSpawn : Transform;
function shoot(){
var clone : Rigidbody2D;
clone = Instantiate(Bullet,BulletSpawn.transform.position,BulletSpawn.transform.rotation) as Rigidbody2D;
clone.velocity = clone.transform.TransformDirection(Vector3(0,BulletSpeed));


Assign your character’s rotation to the bullet in the Instantiate method.