A new law in California is supposed to help police track down violent criminals, but instead it's driving at least two gun makers out of the state entirely.

Could a BB Gun Land Your Child in Jail?

The state law requires guns sold in California to have "microstamps." The unique marking would, in theory, allow police to trace a bullet back to a specific gun.

Many gun rights supporters believe, however, that this law was actually intended to stop gun manufacturers from operating in the state.

Smith & Wesson and Sturm Ruger have announced that they will stop selling guns in California, rather than incur the increased costs of "microstamping" their firearms.

“Smith & Wesson does not and will not include microstamping in its firearms. A number of studies have indicated that microstamping is unreliable, serves no safety purpose, is cost prohibitive and, most importantly, is not proven to aid in preventing or solving crimes. The microstamping mandate and the company’s unwillingness to adopt this so-called technology will result in a diminishing number of Smith & Wesson semi-automatic pistols available for purchase by California residents," the company said in a statement.

Two trade groups have filed a legal challenge to the law.

Harvey Weinstein: I'm Working on Movie With Meryl Streep to Destroy the NRA

Steve Doocy discussed the situation with Chuck Michel, an attorney and author of the book "California Gun Laws." Michel cited several studies that concluded the technology does not work.

And even if the technology was working properly, Michel said that criminals would be able to get around it.

"Criminals aren't real smart, but you don't have to be very smart to figure out that all it takes to take those little numbers off is a file. I got this at a hardware story for $1.99 yesterday. That's all it takes to defeat microstamping technology," said Michel, adding that the law amounts to a new way to restrict Second Amendment rights.

Watch the full discussion above.

Oops! NFL Quarterback’s Wife Leaves AR-15 Rifle in Rental Car