Samantha Nelson

USA TODAY

Most people expect a ticket when they get pulled over, but on Friday in Halifax, Va. they received ice cream cones instead.

A video showing a police officer handing two individuals ice cream cones has caught the internet’s attention.

Police Chief Kevin Lands, who is shown in the video pulling people over with Officer Brian Warner, said the idea came to them earlier that morning in a brainstorm to make people smile.

In the video, the driver appears to be nervous, until after Warner explains they were violating "vehicle code 1.7.3.9."

“Well it’s actually against the law to drive on a hot day without an ice cream cone,” Warner said in the video. “So on behalf of the Halifax Police Department, we’re just making sure everybody is following all the laws today and are driving with ice cream cones."

The passengers begin laughing in the car and tell the officers to “have a wonderful, blessed day.”

Lands said that they pulled over about six to eight vehicles on Friday and had 16 cones to hand out.

Boston police buy ice cream truck, officers give free treats to children

The popular video isn’t the only ice cream stop Lands and Warner recorded, but it has their favorite reaction. Lands said the driver “was amazing” and that “her reaction was genuine.”

“It really made our day,” he said.

Lands said that each vehicle that was pulled over had committed a “minor traffic infraction” so “no constitutional rights were violated.” It is illegal to pull someone over for no reason.

But instead of traffic tickets or written warnings, they received ice cream.

Follow Samantha Nelson on Twitter: @samm1son