An Old Orchard Beach man who robbed a pharmacy in his hometown last winter pleaded guilty to a felony robbery charge Friday in U.S. District Court in Portland.

Billy Schildroth, 37, put his hand inside his coat after entering the Rite Aid Pharmacy at 15 Saco Ave. on Feb. 13. He told the pharmacist that he had “a gun and five bullets” and not to alert anyone or he would shoot the pharmacist in the face, according to court records.

Schildroth ordered the pharmacist to open a safe and then made off with bottles of oxycodone and suboxone and a GPS tracking device that the pharmacist gave him, according to a prosecution document filed in court by Assistant U.S. Attorney Michael Conley.

Schildroth then escaped in a getaway vehicle driven by Kyle Desmarais, who was his partner in the robbery, the prosecution document said.

Schildroth was arrested in June after being indicted by a federal grand jury.

Desmarais, 33, also of Old Orchard Beach, pleaded guilty on June 20 to a charge of aiding and abetting robbery, before the case against him could be presented to a grand jury.

Both men face as much as 20 years in federal prison and fines of as much as $250,000 at upcoming sentencing hearings before U.S. District Judge Nancy Torresen. Desmarais is scheduled to be sentenced on Oct. 8, and Schildroth on Nov. 18.