Bullet falling down even though gravity is turned off

I am trying to make a bullet but before I set it as a prefab, I want to set the components for it. When running the game, the bullet just keeps falling down even though I have set the gravity to 0. Below, is the code I used and a screenshot of my inspector. Any help would be appreciated!

public class PlayerBullet : MonoBehaviour
{
    public float speed = 7.5f;
    public Rigidbody2D rb;

    void Start()
    {
        
    }

    void Update()
    {
        rb.velocity = transform.right * speed;
    }

    private void OnTriggerEnter2D(Collider2D collision)
    {
        Destroy(gameObject);
    }
}

@seanmor96 try setting the rigidbody’s body type to kinematic. If you still encounter the problem please share a small clip as what you did seems fine to me or if you want to keep it dynamic try writing the following code

public RigidBody2D rb;

void Start(){
rb.useGravity = false; // disables gravity
}