Melatonin gummies are working fairly well to help me sleep. I still don’t sleep all night, but I am getting 4 and sometimes 5 hours sleep before I wake up. And it’s a restful sleep. I don’t know why the gummies would work better than pills, but they do work better for me.
The only brand of magnesium I’ve ever taken that makes a noticeable difference is Calm. It’s a powder you mix in water. I’ve taken numerous brands and formulas of magnesium pills over the years - citrate, Theonate, orotate, etc - and they may have helped in ways that were not obvious, but for twitchy muscles, the Calm works best for me. Its magnesium citrate which, if you take too much, has a laxative effect, so you have to start with a small dose and gradually build up to a dose that works.