Mothballs are not an effective deterrent for lizards. A better solution for keeping the lizard population at bay is to remove objects that provide a hiding place or food supply.
Though lizards don't generally like to be around humans, they are often spotted in the spring and summer as they forage for food. They quickly run for cover when confronted or freeze until the perceived threat has passed. Lizards sometimes enter homes through small holes or cracks and can be safely removed by placing a small pot on top of them. Once the lizard is removed, locating the hole used for entry and plugging it ensures the lizard cannot return.