Sectly_Playz

MC Password Script

Apr 8th, 2022 (edited)
1,194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.99 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. print("-----------------------------------")
  4. print("TEC_NO's Password/Passcode Script")
  5. print("-----------------------------------")
  6. sleep(1.48)
  7.  
  8. if disk.isPresent("back") == true then
  9.   term.clear()
  10.   print("Welcome To TEC_NO's Password/Passcode Script!")
  11.   print("-----------------------------------")
  12.   print("Press ENTER To Start!")
  13.   local Done = read()
  14. else
  15.   local function prompterror()
  16.     term.clear()
  17.     print("ERROR: Floppy Disk Not Found, Please Insert Floppy Disk Into Disk Drive On The Back!")
  18.     print("-----------------------------------")
  19.     print("Press ENTER Once Done!")
  20.     local Done = read()
  21.     if disk.isPresent("back") == true then
  22.       term.clear()
  23.       print("Welcome To TEC_NO's Password/Passcode Script!")
  24.       print("-----------------------------------")
  25.       print("Press ENTER To Start!")
  26.       local Done = read()
  27.     else
  28.       prompterror()
  29.     end
  30.   end
  31.   prompterror()
  32. end
  33.  
  34. term.clear()
  35.  
  36. while true do
  37.   if disk.isPresent("back") == true then
  38.     term.clear()
  39.     term.setCursorPos(1,1)
  40.     print("-----------------------------------")
  41.     print("TEC_NO's Password/Passcode Script")
  42.     print("-----------------------------------")
  43.     print("Welcome User, ")
  44.     write("Password: ")
  45.     local input = read("*")
  46.     if input == disk.getLabel("back") then
  47.       term.clear()
  48.       print("Password Correct!")
  49.       rs.setOutput("bottom", true)
  50.       sleep(8.48)
  51.       rs.setOutput("bottom", false)
  52.     elseif input == "1527" then
  53.       term.clear()
  54.       print("Password Correct!")
  55.       rs.setOutput("bottom", true)
  56.       sleep(8.48)
  57.       rs.setOutput("bottom", false)
  58.     else
  59.       term.clear()
  60.       print("Password Correct!")
  61.       sleep(1.84)
  62.       term.clear()
  63.       print("Nah It Was Wrong, Lol!")
  64.       sleep(4.48)
  65.     end
  66.   else
  67.     term.clear()
  68.     print("ERROR: Floppy Disk Not Found, Please Insert Floppy Disk Into Disk Drive On The Back!")
  69.   end
  70.   sleep(0.048)
  71. end
Advertisement
Add Comment
Please, Sign In to add comment