All fireflies glow as larvae. Bioluminescence serves a different function in lampyrid larvae than it does in adults. It appears to be a warning signal to predators, since many firefly larvae contain chemicals that are distasteful or toxic.