check all connections for the light, grounds as well. your voltage regulator could be going bad. however that would have no effect on your spark seeing is how it has nothing to do with the coil.
1985 KXT 250 Tecate - kx cylinder, kx ignition, bassani headpipe, answer silencer, v-force reeds, 38mm airstyker carb, +2 franks swinger, raptor rear shock.
1996 YSF240 Blaster - maxxed out!!!
Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "HOLY SH-T, what a ride!"