Chris Pizzello / Invision/AP 1 / 9
Chris Pizzello / Invision/AP 1 / 9

Charlie Sheen's former brother-in-law has won temporary guardianship of the actor's twin boys with Brooke Mueller.

RELATED: Charlie Sheen and other star comebacks

The former "Two and a Half Men" star's second ex-wife, Denise Richards, has been looking after his sons Bob and Max since their mother lost custody of them following a drugs bust in May.

However, the former Bond girl has been struggling to keep the kids under control amid concerns for their alleged behavioral issues, and she reached out to officials at the Department of Children and Family Services (DCFS) in Los Angeles, revealing she can no longer take care of them because they have started harming her pet dogs and bullying her own daughters.

RELATED: Bitter star splits

Richards expressed fears that the twins' bad behavior is linked to the time they spend with their mother, suggesting they frequently turn violent after returning from visits with her, and she met with Mueller in court on Thursday in a bid to find a solution for their situation.

No agreement was made during the four-hour showdown, but on Friday, it emerged that Mueller's brother, Scott, has been approved by DCFS officials as a suitable replacement as Bob and Max's guardian. And in a twist, the judge also said Scott and the boys could move into Mueller's house, so the twins wouldn't have to change schools, according to TMZ.

Sheen and Brooke split in 2010 after two years of marriage. She is currently seeking to regain full custody of their children after completing an outpatient rehab program last month.

RELATED: Farrah Abraham propositions Charlie Sheen