Advertisement
Cardwell

Untitled

Apr 1st, 2021
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. local side = "right"
  2.  
  3. ps = "A"
  4.  
  5. local tid = 5
  6. local laser = rs.getInput("left")
  7.  
  8. while true do
  9.  
  10. term.clear()
  11.  
  12. term.setCursorPos(1,1)
  13.  
  14. write(" Skriv A og trykk ENTER: ")
  15.  
  16. if input == ps
  17.  
  18. then term.clear()
  19.  
  20. term.setCursorPos(1,1)
  21.  
  22. print("Venter på laser")
  23.  
  24. if laser == true do
  25. rs.setOutput(side,true)
  26.  
  27. sleep(tid)
  28.  
  29. rs.setOutput(side,false)
  30.  
  31. else
  32.  
  33. print("Skjønner ikke")
  34.  
  35. sleep(2)
  36.  
  37. end
  38.  
  39. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement