Get the latest from TODAY

Sign up for our newsletter
 / Updated  / Source: TODAY
By Eun Kyung Kim

A video of a police officer in action is going viral, and this time, it's generating nothing but positive feedback.

The clip shows a Texas police officer doing his best to keep up with some kids teaching him how to "Nae Nae."

Officer Alan Eddins of the Ennis Police Department had just finished trying to deliver a warrant when he stopped by a nearby home where he had seen some children dancing outside, said Lt. Mike Hopson, the department's public information officer.

Eddins came over at the invitation of the kids, who soon began showing him the moves to the Silento song, “Whip/Nae Nae." The scene was captured by the Shanitra Robinson, who posted the clip onto her Facebook page. "Good cop!" shouted one of the dancers at the end of the routine.

“I guess all EPD ain't bad look at officer Eddings out with the kids doing the nae nae,” she wrote in the caption.

Eddins later recreated his dance moves during an interview with a local news affiliate.

Eddins was on vacation Wednesday and unavailable for comment. But Hopson said the overwhelming response the video has received has been “good PR” for the department and law enforcement in general.

“It makes people see we’re not all bad guys,” he said. “It’s good for people to see.”

Follow TODAY.com writer Eun Kyung Kim on Twitter.