No one told you to give up... But they die without the proper husbandry. And that is all components of care that need to be met from, lighting, housing, temps day and night, humidity levels, proper plants for the species, supplements, feeders, etc.
If you want a chameleon then do the work to get what you really want to have. Learn everything you need to provide. Pick a species based on what you can provide. I love Jackson's and helmeted chams but I can not get the night time temp drop they need. So I do not have those species. There are many I would love to have but I know what I can and can not provide. Right now I can easily provide the environment a Veiled or Panther needs. So I keep the species that I know I can care correctly for.
So you either put in the time and effort required to be able to provide an animal a long healthy life or you don't try again. But just jumping to another animal all together does not solve the fact that you do not have the knowledge of how to properly care for it either. Just because you have an empty screen cage does not mean you have to fill it up now.
Just because you want something does not mean you should jump in head first. This is how bad situations happen. Take the time do research discover what is right for you and what is right for the animal.
But if your response about giving up was because you don't want people telling you that they are hard or the hobby is hard or the stuff you have is incorrect then you should not be in this hobby IMO. These animals are the hardest animals I have ever had. I have 5k easily into my entire set up for my 3 boys. I spare no expense for what they need. I spend $80 a month on feeders and as you learned vet trips are expensive. This is not a cheap hobby and it requires critical thinking. The ability to understand these are complex animals that are not dogs or cats. They don't want you holding them all the time. It is like having a fish tank.