Isn't evolution based around survival of the fittest where members of a species born with certain beneficial genetic traits are more likely to survive and reproduce carrying on those traits to their offspring, which over time continues to completely change animals.
Maybe I'm missing something here but I Question how such a change occurs where they can transition from laying eggs to live birth, this didn't happen overnight obviously but how did the traits of transitioning to live birth before live birth was possible benefit the lizards so they could pass on such a gene?