A YOUTUBE prankster from has admitted fatally shooting her boyfriend in a botched video stunt they hoped would go viral.

Monalisa Perez believed Pedro Ruiz would be shielded by a thick book as she took aim from close range in front of onlookers.

3 Monalisa Perez has pleaded guilty to shooting her boyfriend to death on camera in a YouTube prank gone wrong Credit: AP:Associated Press

The 20-year-old pleaded guilty to second-degree manslaughter and agreed to serve a six-month sentence.

Minnesota native Perez will face a sentencing hearing in February.

The mum-of-two and her 22-year old partner, were recording the stunt in June for their YouTube channel, where they published videos of their daily lives and pranks they performed.

Ruiz convinced Perez to shoot him with a pistol as he held the tome in front of his chest.

3 The mum of two fired a gun at Pedro Ruiz believing a thick book he was holding would stop the bullet Credit: YouTube

As proof of his plan he showed her another book with a bullet hole on one side and no exit hole, police said.

"Me and Pedro are probably going to shoot one of the most dangerous videos ever," Perez wrote on Twitter prior to performing the stunt. "HIS idea not MINE."

With video cameras recording, Perez, who was pregnant with the couple's second child, pulled the trigger from about a foot away, according to authorities.

The bullet pierced the book, fatally wounded Ruiz and he died at the scene of a single gunshot wound to the chest.

3 Perez, who was pregnant with the couple's second child at the time of the shooting, admitted second-degree manslaughter Credit: YouTube

Family and friends said at the time that the death was an accident and that Ruiz had been talking about performing the stunt for some time.

"I said, 'Don't do it, don't do it,'" Claudia Ruiz, the victims's aunt, told local TV station KVLY in June, adding that his response was, "We want more viewers."

In a deal with prosecutors, Perez agreed to serve three months in jail in one-month increments over three years, and then serve the other three months under house arrest.

She will also be subject to 10 years of probation and a lifetime ban from possessing firearms.

YouTuber Pedro Ruiz caught on film toying with huge handgun - before he was shot dead when stung went wrong

Although Perez has already agreed to the sentence with prosecutors, a judge can ignore the deal and impose a longer sentence.

In such cases, defendants usually have the right to rescind their guilty plea and go on trial.

Ruiz was a railroad worker, who had lived with foster parents before graduating high school, according to a published obituary.

He met Perez in 2012 and they had their first child two years later.

MOST READ IN US NEWS SPEEDING OFF Cop DRAGGED by car of fleeing suspect who crashes into police cruiser & dies Warning POO-NAMI Horrified couple watch as new bathroom floods with POOP from the ceiling 'not a fan' Trump slams Meghan for meddling in US election & wishes Harry 'luck' with her 'I WANT TO DIE' Girl, 7, tired of abuse from parents asks doctors not to 'cure her' TOTAL SICKO Perv forced 150 girls to send him pics and vids of them drinking their own pee 'MADE BRITAIN GREAT BY GOING' Meg & Harry told to LEAVE US by Trump adviser after vote plea Latest WAR ON THE STREETS Two cops SHOT as riots erupt after no police charged over Breonna death ‘STAY OUT’ Harry & Meg slammed for ‘interfering in US politics’ after 'vote out Trump' plea COP SHOCK Disgraceful moment officer runs his bike over injured protester’s HEAD ‘TURN YOURSELF IN' Horrifying moment grandma is hurled through air by hit-and-run driver

"Everyone that knew him, knew that he never hesitated to try something new, always pushing things to their limits," the obituary said.

The couple's YouTube channel was still active and its 18 videos have generated 4.7 million views.

As part of her plea deal, Perez agreed to not seek financial gain from her case.

We pay for your stories! Do you have a story for The Sun Online news team? Email us at tips@the-sun.co.uk or call 0207 782 4368 . We pay for videos too. Click here to upload yours.