Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- passkey = "MyNudel"
- while true do
- if disk.isPresent("bottom") then -- Put side to the side the disk drive is on
- h = fs.open("disk/passcode", "r")
- if h.readAll() == passkey then
- print("Accepted")
- -- Insert anything here for the code, rs.setOutput() whatever..
- else
- print("Denied")
- disk.eject("bottom") -- Replace side with diskdrive side
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement