When juvenile pranksters were caught egging homes in Florida last week, the local sheriff’s office used an old-fashioned solution as a punishment.

Walton County Sheriff’s Office posted a picture of teenagers washing a patrol car and explained the story in a Facebook post on Sunday.

“These suds have a story,” the office said. “But, this tale starts with six teenagers and some eggs in hot water.”

Police explained that a group of teenagers bought two dozen eggs and went on a drive “to use them as projectiles to decorate houses and cars.”

FLORIDA NURSE POISONED NEIGHBORS’ CATS, PREGNANT DOG FOR GOING INTO HER YARD: SHERIFF

Walton County Sheriff’s Office was able to track these humpties down and a compromise was organized,” the Facebook post explained.

Instead of pressing criminal charges, the officers put the teens to work. They told the group to show up at their station at 6:30 a.m., where they ran a car wash.

SUSPECT SOUGHT IN FLORIDA FATAL MALL SHOOTING; $5K REWARD FOR INFORMATION LEADING TO ARREST: POLICE

“In lieu of criminal charges, the teenagers put on an all day car wash cleaning the victim’s cars, patrol cars, fire trucks and any other vehicle that happened to stop by… for free,” police said.

“While we strongly believe in solving crime, we also believe in solving problems,” the post added. “We’re here if you need us.”

Local residents approved of the decision, with many writing positive messages in the Facebook comment section.

CLICK HERE TO SIGN UP FOR OUR LIFESTYLE NEWSLETTER

“Very smart, teaching them a lesson they’ll always remember & hopefully their parents as well!!” one Floridian said.

“I remember washing a couple fire trucks and patrol vehicles in my day,” another wrote. “Lesson learned.”

CLICK HERE TO GET THE FOX NEWS APP

Fox News Digital reached out to Walton County Sheriff’s Office for comment.

For more Lifestyle articles, visit www.foxnews.com/lifestyle.