Legendary ladies man Charlie Sheen and Lindsay Lohan shared a bed this week on the set of “Scary Movie 5” — as well as playful pillow talk between takes, Page Six has learned.

“Charlie and Lindsay filmed a love scene,” said a spy. “The scene they were shooting for the movie was of them in bed together.”

We hear the “Scary” script called for Lohan to kiss Sheen, and also to slip into a kinky collar.

PHOTOS:

LINDSAY LOHAN

CHARLIE SHEEN

Lohan got cold feet about shooting the scene, Page Six reported, and had blown off a string of meetings and flights because she “freaked out” about mocking her public image.

However, “Lindsay was a great sport,” a spy told us. “She was poking fun at herself, and she really got into it and seemed to enjoy it.”

The spy added that the two actors with Hollywood’s most infamous off-screen reputations even “shared some playful pillow talk during shooting.”

“They were ad-libbing,” a source said, and bonding over their reputations between takes. “They were joking that they’ve both had a lot of issues over the past couple of years.”

At one point while filming the horror spoof, Lohan got scared and turned to Sheen: “Lindsay was scared by a sound effect, and actually jumped into Charlie’s arms,” our spy added. “But everything went smoothly and surprisingly on schedule.”

While Sheen hopped in bed with the one-time “Mean Girls” star, his exes Denise Richards and Brooke Mueller were spotted in Los Angeles, taking their kids out in Malibu. Sources say Richards has been taking care of the 3-year-old twins Sheen had with Mueller, as well as the two kids she has with Sheen and her adopted daughter.

But Mueller’s rep told us the situation had been temporary: “Brooke had been on a local spiritual wellness retreat for about two weeks with a couple of friends,” he said. “She arranged for the twins and their nanny to stay with Denise and her family, so the boys could spend time with their sisters. Brooke is back home with the kids, and everyone has resumed their normal routine. The twins have never lived with anyone other than their parents.”