NEW YORK - Lawmakers got the green light to crack down on speeding drivers near schools.

The bill will allow New York City to set up 20 speed-detecting cameras in school zones. Drivers will have to pay $50 for going 10 mph over the limit.

Sen. Marty Golden said that while he did vote in favor of the cameras, the city still needs more speed bumps, signs with flashing lights and a greater police presence.

The cameras are part of a five-year pilot program. Each camera is mobile and can be moved around to different locations.

Gov. Andrew Cuomo still has to sign the legislation into law.