How to make flashing lights faster?

Hi all, a fairly easy question I believe but I need a script reference for a flashing light. I have this so far but it is not flashing nearly fast enough:

mgLight.enabled = !mgLight.enabled;

I cant put it into a `function start()` either as I am calling the light to flash when a button is being pressed. I was thinking about making it flash when an int is at a certain value (i.e. if int lightflash is 1 it flashes, if it is 0 it does not). Obviously i cannot implement this using the `yield WaitForSeconds(timer);` as that requires function start to work properly. Any ideas about how I could go about this? Regards

WaitForSeconds doesn't require Start. Just make a function that does this, and call the function when the button is pressed.