Based on the characteristics you described, the animal you are thinking of is likely a reptile. Reptiles are a diverse group of animals that includes snakes, lizards, turtles, crocodiles, and alligators. They are known for their scaly skin, which helps to prevent water loss, and their ability to lay eggs on land. Reptiles are also ectothermic, which means that they rely on external sources of heat to regulate their body temperature.