Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input = "back"
- output = "top"
- while true do
- os.pullEvent()
- if rs.testBundledInput(input, colours.orange) then
- print(rs.getBundledOutput(output))
- if rs.getBundledOutput(output) == 3 then
- rs.setBundledOutput(output, 0)
- print("off")
- else
- rs.setBundledOutput(output, colours.lightBlue)
- print("on")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement