Advertisement
Guest User

startup

a guest
Apr 30th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. while true do
  2.   if rs.getAnalogInput("left") < 2
  3.     then rs.setBundledOutput("bottom",colors.red)
  4.     end
  5.   if rs.getAnalogInput("left") > 6
  6.     then rs.setBundledOutput("bottom",0)
  7.     end
  8.   if rs.getAnalogInput("left") < 9
  9.     then rs.setOutput("top",true)
  10.     end
  11.   if rs.getAnalogOutput("left") > 9
  12.     then rs.setOutput("top",false)
  13.     end  
  14.    
  15.        
  16.   sleep(5)
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement