Advertisement
Alvejante7Flores

Elevador Voador

Apr 5th, 2020
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. rednet.open("right")
  2.  
  3. a=0
  4.  
  5. function subir()
  6.   while rs.getInput("back")==false do
  7.     shell.run("redpulse left 1 0.01")
  8.     shell.run("redpulse bottom 1 0.01")
  9.   end
  10. end
  11.  
  12. while a==0 do
  13.   fodase1,mensagem,fodase2=rednet.receive(999999999)
  14.   if mensagem=="subir" then
  15.     subir()
  16.   end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement