Advertisement
Guest User

Untitled

a guest
May 6th, 2015
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. passkey = "MyNudel"
  2. while true do
  3. if disk.isPresent("bottom") then -- Put side to the side the disk drive is on
  4. h = fs.open("disk/passcode", "r")
  5. if h.readAll() == passkey then
  6. print("Accepted")
  7. -- Insert anything here for the code, rs.setOutput() whatever..
  8. else
  9. print("Denied")
  10. disk.eject("bottom") -- Replace side with diskdrive side
  11. end
  12. end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement