Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local robot = component.proxy(component.list('robot')())
- while true do
- computer.beep(20, 0.5)
- if robot.detect(3) then
- robot.swing(3)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement