Police did not say if the rifle was real or operable.
The men claimed they were filming a movie on the roof, but authorities said no camera was recovered at the scene.
They were taken into custody and charges are pending. Likely charges including menacing and criminal possession of a weapon.
One of the three men in custody lives in the building.