Trying to persuade your parents to let you play M-rated games at 12 is really about showing them you're responsible. The classic approach works: butter them up a little and, more importantly, prove it with your actions.
Bring your grades up, keep up with chores, and show maturity in other areas. Then sit down and calmly explain why you're interested in a particular game. You might also offer compromises, like playing only in shared spaces or sticking to titles they're comfortable with. Parents are far more likely to say yes when they see you handling responsibility well.