By CBSNewYork Team

NEW YORK (CBSNewYork) — It was raining marijuana earlier this month in Brooklyn.

Police say a 29-year-old man threw a garbage bag full of pot off a rooftop during an attempted armed robbery in Sunset Park.

READ MORE: NYC Hospitality Alliance: Mayor De Blasio 'Grinch' For Vaccine Mandate That May Keep Tourists With Young Children Away

The marijuana scattered onto the sidewalk below, where people scrambled to pick it up.

It happened around 11:15 p.m. on June 1 near the corner of 8th Avenue and 46th Street.

READ MORE: Amazon Web Services Outage Spells Trouble For MTA App Users, Among Others

Police said the 29-year-old met up with a group of people on the rooftop to sell them marijuana. The suspects allegedly pulled out a gun, started punching and kicking the man and tried to rob him.

That’s when police said he flung the bag off the roof. Surveillance video shows it land on the sidewalk below, as people rush over to collect the contents.

Police said the victim was treated at an area hospital for cuts to his face and bruises on his body. His attackers fled the scene in a black BMW sedan heading east on 46th Street.

MORE NEWS: 'West Side Story' Returns To Paterson For Special Screening

Anyone with information about the crime is asked to call the NYPD’s Crime Stoppers hotline at 1-800-577-TIPS (8477), or for Spanish, 1-888-57-PISTA (74782). You can also submit a tip via their website or on Twitter, @NYPDTips. All calls are kept confidential.

CBSNewYork Team