Yes, there is a way to do this. First, you need a click trigger brick. Then on the actual light brick do these: Wait For, then Light, have the light persistent. After that, have another wait for, but make it "Loop last". And one more light with no light selected. It should work.