Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local robot = require("robot")
- function start()
- robot.forward()
- robot.turnRight()
- robot.up()
- if robot.detect() == true do
- robot.down()
- robot.swing()
- robot.turnLeft()
- robot.down()
- robot.forward()
- else
- robot.down()
- robot.turnLeft()
- robot.forward()
- end
- end
- robot.forward()
- robot.forward()
- for i = 1, 10 do
- start()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement