Personally i'd use an animation for this and not a script. It will be far easier to control, tweak and obtain the effect you are after. Light.Intensity as well as other light properties are all exposed in the animation editor so its simple to generate the animation.
↧