As a libertarian, that's just not true. Elon Musk isn't a libertarian either, he's just an opportunist.
The libertarian solution to things like regulations is court precedent. Setting that precedent should be the job of the attorney general and a jury, and the legislature should only make broad laws.
This hopefully cuts down on government corruption since it's theoretically harder to buy off a jury than legislators.