How Do Games Make Lighting Zones For Different Maps?

You could accomplish that with this script:

Good luck