Advertisement
Guest User

Untitled

a guest
May 24th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. local component = require("component")
  2. local robot = require("robot")
  3.  
  4. function start()
  5. robot.forward()
  6. robot.turnRight()
  7. robot.up()
  8. if robot.detect() == true do
  9. robot.down()
  10. robot.swing()
  11. robot.turnLeft()
  12. robot.down()
  13. robot.forward()
  14. else
  15. robot.down()
  16. robot.turnLeft()
  17. robot.forward()
  18. end
  19. end
  20.  
  21.  
  22.  
  23.  
  24. robot.forward()
  25. robot.forward()
  26. for i = 1, 10 do
  27. start()
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement