Togglable lua scripting