Laws don't change people's behavior. Incentives do.
Discussion
Except laws often influence incentives.
Laws secular or religious
laws trigger people's creativity to circumvent them.
Regulations, laws, policies and incentives (subsidies, credits and etc) all can change behavior, there are certainly ineffective ones though.
However, they don't change people's value scales, and ultimately do not work unless they are voluntary and aligned with people's values.
So many good Austrian and Chicago School minds weigh in on incentives.
Here's a great clip of Milton Friedman. His last example is particularly applicable to how Bitcoin not only changes behavior but frees resources.
He calls it "Butt-legging" (cigarettes)