SHARE
TWEET

Untitled

a guest Jan 25th, 2019 126 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local valid -- valid value for Input
  2. local accounts = { -- list of accounts for configureation
  3.    ["username"] = "password",
  4.    ["polis"] = "admin",
  5.    ["xolbor"] = "roblox",
  6.    ["anavrin"] = "nirvana"
  7. }
  8.  
  9. term.clear()
  10. term.setCursorPos(1, 1)
  11.  
  12. print("Enter username")
  13. write("> ")
  14. local input_user = read()
  15.  
  16. print("Enter password")
  17. write("> ")
  18. local input_pass = read("*")
  19.  
  20.  
  21. for valid_user, valid_pass in pairs(accounts) do --pairs accounts
  22.    if (input_user == valid_user and input_pass == valid_pass) then valid = true
  23.  
  24.  
  25.  
  26.  
  27.      
  28.       if valid then print("Access Granted") else print("Access Denied")
  29. while true do
  30.        
  31.         rs.setBundledOutput("left", colors.purple ,true)
  32.        sleep(3)
  33.        rs.setBundledOutput("left" ,false)
  34. end
  35.          --sleep(3)
  36.        --  rs.setBundledOutput("left", colors.purple ,false)
  37.       end
  38.    end
  39. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top