Use this simple code to put light switches into your games! As long as you notify me that you are using it in the comments and put my username in the credits of the game using this, it's completely free to use.
Still working on it. It works, but if you click on if the lights are already on, the lights will turn off and if you click off when the lights are already off, the lights will turn on.