A man allegedly placed a homemade bomb behind a Pennsylvania hotel on Sunday and claimed it was a warning that aliens will destroy the planet if humans didn't "start being good people, police said.

David Oxenrider, 29, was taken into custody by state troopers after they responded to the scene at the Bahney House in Myerstown, a city roughly 25 miles north of Lancaster, where he reportedly lives.

STRANGE ORBS OVER KANSAS CITY HAVE LOCALS CONTEMPLATING ALIENS

Oxenrider allegedly told the hotel manager that he made an explosive device and was keeping in his room. The manager told him to remove it from the building and Oxenrider allegedly placed it next to the dumpster outside of the hotel, WPMT reported.

FORMER BLINK-182 GUITARIST TOM DELONGE TALKS HIS QUEST TO PROVE ALIENS EXIST

A state police bomb squad disabled the package, and no one was injured in the incident.

Oxenrider told investigators he encountered aliens and a UFO in 2014. He claimed the aliens told him: "Humans need to start being good people, or else they were going to destroy the Earth with a nuclear laser beam."

CLICK HERE TO GET THE FOX NEWS APP

The 29-year-old, according to a criminal complaint, says he tells people about the aliens, but people tell him he's "crazy" in return. So he allegedly created the bomb to warn authorities.

Oxenrider is charged with manufacturing a weapon of mass destruction, causing or risking a catastrophe and reckless endangerment, and is awaiting arraignment.

The Associated Press contributed to this report.