If I have a scrolling background that repeats, how would I repeat the lights along with it?
Same way you’re repeating your background, dynamically adding and subtracting lights. Add them as they come into view, and remove those that are long out of view.