Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Ok so heres how this works.
- You must place the control blocks in robot slots
- 1-5. 1: Forward, 2: Right, 3: Left, 4: Up,
- 5: Down.
- ]]--
- local robot = require("robot")
- while true do
- robot.select(1)
- if robot.compareDown() == true then
- robot.forward()
- end
- robot.select(2)
- if robot.compareDown() == true then
- robot.turnRight()
- robot.forward()
- end
- robot.select(3)
- if robot.compareDown() == true then
- robot.turnLeft()
- robot.forward()
- end
- robot.select(4)
- if robot.compareDown() == true then
- robot.up()
- robot.forward()
- end
- robot.select(5)
- if robot.compareDown() == true then
- robot.forward()
- robot.down()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement