There is no way to know for sure, but I bet kids have been chasing lightning bugs for just as long as humans have been wearing flipflops. Smithsonian Magazine says there are more than 2,000 species of fireflies, which are actually not flies, but a type of beetle. Male fireflies flash their light to attract females. Each species has its own flashing pattern. Some species flash yellow, some flash green and some share white.