I'm wondering how to animate lights like this?

Script + emissive material - they’re not casting any light.