My legs hurt constantly I rotate in bed because legs hurt so bad?

Neuropathy. It sounds like your suffering from a peripheral neuropathy. This could be due to something as simple as a vitamin deficiency or as complicated as an immune neuropathy. Most neuropathies are treatable, including the cost when it is immune mediated. I agree that you need to see a neurologist to have the appropriate studies to determine the proper treatment.