BREA, Orange County (CBSLA/CBS Local) — Porch pirates in Orange County thought they scored a fancy electronic gadget, but they were instead hit with a glitter bomb developed by a former NASA engineer.

After a package was stolen from outside his Brea home, a fed-up Mark Rober took matters into his own hands.

READ MORE: Woman Found Dead During Visit With Friends at Home in Rohnert Park

Rober spent several months creating a fake package that, once opened, showers a thief with glitter and a fart spray that would deploy the moment it’s opened. The package was also rigged with several phones with cameras to capture the thief’s reaction.

READ MORE: San Francisco Bayview District Native Unites Faith-Based Community to Help Others

The video, which features several thieves opening the trick package, was trending No. 1 on YouTube Tuesday.

MORE NEWS: San Francisco's 'Mayor of The Mission' Helps Feed People Struggling To Survive During Pandemic

The thieves, whose faces are pixelated, are shown yelling at the package and the smell emitting from it, throwing it outside in the garbage, and trying to vacuum up the glitter.