I actually overcomplicate it in my own setup. You can put it in the macro tab but then it will break everytime you go to view/edit it without repasting it all in. What I do is I make this macro as an ability on a blank macro mule character sheet, hide this sheet in 3 folders with warnings not to look in the folders or edit the sheet(cause the mule needs to be set to all players so they will see it if they snoop), then set an actual macro in the collections tab that is calling said sheets ability with a %{Charactermulename|Abilityname}. Then set this new macro from the collections tab as a token action with all players having access to the macro. Like The Aaron said, you need a pro sub cause its actually using 2 scripts. Its using Torch API's Flicker command, and also Tokenmod. If you do it right, the players will see a button at the top of their screen when they have their token selected that you named something like "LightsOnOff" and then they can click it to toggle on and off lights. If when the players fire the ability it just spits out the name of the mules ability, that means you never set the character sheet mule to all players.