 Elon Musk is not bashful about his social views, and he's taking action after California enacted a law barring school districts from mandating staff tell parents if a child wants to change their gender identification. Elon Musk says on X he is moving the headquarters of SpaceX and X out of California and taking them to Texas because California's new law is a final straw, as he puts it. History proves he may not be bluffing. He moved Tesla's headquarters to Austin from Palo Alto, California in 2021.