Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = {...}
- if args[1] == nil then
- print("You must type in an access level!")
- return
- end
- local side = "right"
- local reader = peripheral.wrap(side)
- print("Swipe the card when you're ready!")
- while true do
- reader.beginWrite("Narwhal1337."..args[1],"Narwhal Access "..args[1])
- local event,arg1,arg2,arg3 = os.pullEvent()
- if event == "mag_write_done" then
- print("Card written.")
- return
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement