A creep in all black stalked the roof of a Brooklyn senior center with a toy gun before he was arrested, according to police.

The suspect was spotted atop the Fort Greene Grant Square Center in Bedford-Stuyvesant around 10:52 a.m. armed with what appeared to be a rifle, according to police.

When units arrived, they took cover, a police spokesperson said, adding that no shots were fired.

Police eventually stormed the roof and took the unidentified man into custody at 11:20 a.m., police said.

Charges are pending.

“Great job by #NYPD ESU quickly apprehending a suspect who was reported to be armed with a gun. The male on the roof was safely taken into custody and was in possession of a Airsoft rifle,” the NYPD Special Operations posted to Twitter following the arrest.