Want more features on Pastebin? Sign Up, it's FREE!
Guest

Cinema

By: a guest on Dec 22nd, 2013  |  syntax: Lua  |  size: 0.28 KB  |  views: 42  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. side = "back"
  2. side2 = "left"
  3. while true do
  4. event = os.pullEvent()
  5. if event == "redstone" and rs.getInput(side) == true then
  6.   shell.run('monitor','right', 'secret/alongtimeago')
  7. elseif event == "redstone" and rs.getInput(side2) == true then
  8.   shell.exit('monitor','right')
  9. end
  10. end
clone this paste RAW Paste Data