Advertisement
Guest User

startup

a guest
Apr 30th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | None | 0 0
  1. -- Tutorial here: https://www.youtube.com/watch?v=vw7o00xvnLQ
  2. -- For the Floppy Disk
  3. -- Insert the floppy into the disk drive adjacent to the computer
  4. -- Go into the computer and type: edit disk/.security/key
  5. -- Type inside the edit program: key = "lemmein"
  6. -- Save and exit, then reboot your computer.
  7. -- It should open the door and eject the floppy disk.
  8. -- If it doesn't follow the tutorial again.
  9.  
  10. -- Floppy Disk Security Program
  11.  
  12. os.pullEvent = os.pullEventRaw
  13. while true do
  14.     if disk.isPresent("back") then
  15.         if fs.exists("disk/.security/key") then
  16.             shell.run("disk/.security/key")
  17.             if key == "TransitDoorUnlock1" then
  18.                 disk.eject("back")
  19.                 rs.setOutput("left", true)
  20.                 sleep(3)
  21.                 rs.setOutput("left", false)
  22.             else
  23.                 disk.eject("back")
  24.             end
  25.         else
  26.             disk.eject("back")
  27.         end
  28.     end
  29.     sleep(0.1)
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement