First, reach the General Grievous campaign, then Chapter 5. Once there, play until you get control over the rookies. One of them has the machine gun. You will eventually come to a hallway with tons of droids flooding in. Start going insane and killing as many as you can. They keep respawning and, even if you die, the counter does not reset.