Advertisement
Guest User

startup

a guest
May 1st, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. print("Hallo")
  2. while true do
  3. input = rs.getInput("top")
  4. input2 = rs.getInput("right")
  5.    
  6.     if input == true and input2 == false then
  7.         sleep(300)
  8.         rs.setOutput("right", true)
  9.         --print("a")
  10.     else
  11.         if input == false then
  12.             sleep(0.5)
  13.             rs.setOutput("right", false)
  14.         --print("b")
  15.         else
  16.     end
  17. end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement