Stop rushing to the same spot where you keep getting killed. Even if you want revenge, take a different route instead. If your teammates are all on one side of the map, the enemy probably isn't there, so avoid the chaos, slip around, and catch opponents from behind.
A silencer on your gun is also smart, so you don't light up the enemy radar every time you fire. Try the Support class if you can rack up kills but not consecutively. And pick a gun, attachments, perks, and streaks you're genuinely confident with. You don't have to level up every weapon.
Another big help is jumping into a private match on the map you're struggling with. Once you're in, figure out where everyone camps, then look for good sightlines, grenade spots, and tactical grenade spots to flush out campers. Start with the Support package, then move to Assault; Specialist is for advanced players who can get all their kills with their gun. Look up flanking and rushing tips on YouTube for quality advice from creators like tmartn and 12awinstinct.