Did they have a uvb light on it and how old was it? If the bulb was over 6 months old the dragon wasn't getting any uvb. Also, the legs may have been "derpy" due to the lack of uvb and no way to process calcium(or vitamin d3, I forget).