Guest User

OC motion sensor

a guest
Jan 21st, 2016
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. local component = require("component")
  2. local event = require("event")
  3. local yourName = "Ranubis"
  4.  
  5. while true do
  6. event.pull("motion")
  7.  
  8. if name == yourName then
  9. print(name)
  10.  
  11. else
  12. print("nothing")
  13. os.sleep(2)
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment