Bullets shooting in the opposite direction

I am making a game star wars, I wrote a code to enable a droid to shoot the bullets towards an FPS controller, but the bullets fly exactly in my opposite direction, I have tried everything. Is there a way out?

try to change this:

rb1.AddForce (player.transform.position * speed);


     direction = player.transform.position - transform.position;
     direction = direction.normalized;
     rb1.AddForce(direction * speed);

it should work,
hope that helps,

Hey, thanks a lot it worked.