Ok, clearly there is a huge problem. But you are not giving enough info for an exact fix. Assuming the animal was healthy when you got it I would look at the environment it is in. Uvb lights adequate? Heat adequate? Substrate and humidity ok? How about the size of the enclosure and is there a natural light cycle? What types of food are being offered? I would seriously recommend finding out exactly what type of setup is needed along with the care and just look at it with a fresh mind and open eyes to determine what is inadequate. Because it sounds to me that it's on a terminal road otherwise. I wish you the best of luck with it.