Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("t")
- while 3>1 do
- while not t.detect() do
- t.forward()
- end
- if not t.detectLeft() then
- t.left()
- elseif not t.detectRight() then
- t.right()
- else
- t.turnAround()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement