The boy told investigators he was given the pistol at a Halloween party and forgot about it, police said.By Ross Guidotti

GREENSBURG, Pa. (KDKA) – A 15-year-old boy is accused of bringing a gun to Greensburg Salem High School on Wednesday.

Police were called after the school resource officer discovered the teen using a marijuana vape pen in the bathroom. When he was taken to the principal’s office, police said a 9 mm loaded pistol was found in his backpack.

READ MORE: Pittsburgh Weather: Conditions Point To 2021 Not Being A White Christmas

The boy told police he was given the gun at a Halloween party by someone dressed up as a robot and didn’t know what to do with it. Police said he told investigators he forgot about it.

“He had received the handgun in southwest Greensburg at a Halloween party. The only thing that he would give us or provide us was that there was the indication that the cops were being called at this party, so an individual with a mask on that was dressed like a robot that he claims he did not know handed him this firearm and said that he had warrants out for his arrest, so the juvenile had custody and control of that handgun ever since,” said Greensburg police Captain Shawn Denning.

READ MORE: Pittsburgh Public Schools Investigating Threats Made Towards Numerous School Campuses

A letter from the district said the student was questioned, police were immediately notified and the teen didn’t bring out the gun or use it to threaten others.

According to police, the boy doesn’t remember the address of the Halloween party and investigators are working to determine whether the firearm was stolen.

MORE NEWS: Holiday Shopping Tips: Identifying And Avoiding Online Shopping Scams

He faces multiple gun charges in addition to a marijuana possession count. He was taken to the Juvenile Detention Center in Greensburg.