Despite Scott Disick‘s Cannes binger, ex Kourtney Kardashian, 38, is letting the 34-year-old see their three kids.

The Keeping up With the Kardashians star is attempting to keep the troubled dad from going down a ~darker~ path by allowing him to spend time with their children.

MUST SEE: Khloé Kardashian Shares Photo of Kourtney and Scott’s Kids Amid Their Drama — See the Rare Photo of Reign!

A source told E! News, “She wants her kids to have a relationship with him,” referring to seven-year-old Mason, four-year-old Penelope, and two-year-old Reign. “She hopes that by allowing him to see the kids, it will motivate him.”

The sourced added, “The kids are the best possible influence on Scott. When he’s on dad duty and takes them to the movies out to lunch, he is at his best.”

View this post on Instagram

Twinkle twinkle

A post shared by Scott Disick (@letthelordbewithyou) on

Scott was spotted with a bevy of different women while in Cannes a few weeks ago.

First, Scott was linked to former Disney star Bella Thorne after he was seen packing on major PDA with the 19-year-old. The following day, however, he was photographed getting cozy with his ex-girlfriend, Chloé Bartoli, 26.

MUST SEE: Mature Adult Scott Disick Gets Dragged on Instagram After Hitting Ibiza With His Boys

Meanwhile, Kourtney flaunted her super sexy bikini body — and relationship with 24-year-old model boyfriend Younes Bendjima — also while in Cannes.

Despite her relationship with Scott, Kourtney wants the best for her kids. The insider said, “The right thing to do is to help foster their relationship with him and not stand in the way. Regardless of how she feels about him and the decisions he has made, she does want her kids to have a healthy relationship with their dad.”

Watch the season finale of Keeping Up With the Kardashians Sunday at 9 p.m., on E!

Take a look through photos of the couple and their family during happier times when they vacationed together in September 2016!