An MBTA trolley driver paid a friend $2,000 to don a Halloween mask and "attack" him while he was on the job, allowing him to fraudulently collect workers' compensation and disability insurance, according to authorities.

Thomas Lucey, 46, is facing charges of insurance fraud and other counts, including misleading police, after the bizarre plot crumbled when police pulled fingerprints off a fake plastic pumpkin the so-called "attacker" left behind and traced it back to Lucey's friend, according to Transit Police and prosecutors.

Lucey, who was indicted yesterday, is still collecting the workers' comp and disability pay. A T spokesman said the agency has "initiated appropriate disciplinary actions" against him. His last listed pay was $41,675 two years ago, according to payroll records obtained by the Herald.

Police say they responded to the Cedar Grove Station on the Mattapan trolley line on Oct. 30, 2016, to find Lucey, who claimed a man in dark clothing, wearing a "Michael Myers" Halloween mask and carrying a plastic pumpkin had boarded his trolley and began attacking him.

Lucey told police he was pulled from the train and pummeled on the ground before the attacker ran off, leaving behind the plastic pumpkin.

Lucey went to the hospital and filed paperwork to begin collecting workers' compensation. He also claimed to have post-traumatic stress from the attack and began receiving long-term disability insurance, according to prosecutors.

But the alleged assault wasn't what it seemed, according to authorities. Lucey's acquaintance eventually told investigators that Lucey paid him $2,000 to orchestrate the attack.

Police say they later found bank and phone records showing the two had communicated both before and after the supposed attack, according to Suffolk County District Attorney Daniel Conley's office.

The friend, who police didn't identify, cooperated with the investigation.

Lucey is also facing perjury charges for lying on the paperwork to begin collecting the benefits, police said.

He's expected to be arraigned on March 20 in Suffolk Superior Court.