Advertisement
Guest User

startup

a guest
Jul 24th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. input = "back"
  2. output = "top"
  3.  
  4. while true do
  5.   os.pullEvent()
  6.   if rs.testBundledInput(input, colours.orange) then
  7.  
  8.   print(rs.getBundledOutput(output))
  9.  
  10.     if rs.getBundledOutput(output) == 3 then
  11.       rs.setBundledOutput(output, 0)
  12.      
  13.       print("off")
  14.     else
  15.       rs.setBundledOutput(output, colours.lightBlue)
  16.  
  17.       print("on")
  18.     end
  19.   end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement