Advertisement
markov2019

Untitled

May 7th, 2021
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.15 KB | None | 0 0
  1. local robot = component.proxy(component.list('robot')())
  2.  
  3. while true do
  4.   computer.beep(20, 0.5)
  5.   if robot.detect(3) then
  6.     robot.swing(3)
  7.   end
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement