Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local valid -- valid value for Input
- local accounts = { -- list of accounts for configureation
- ["username"] = "password",
- ["polis"] = "admin",
- ["xolbor"] = "roblox",
- ["anavrin"] = "nirvana"
- }
- term.clear()
- term.setCursorPos(1, 1)
- print("Enter username")
- write("> ")
- local input_user = read()
- print("Enter password")
- write("> ")
- local input_pass = read("*")
- for valid_user, valid_pass in pairs(accounts) do --pairs accounts
- if (input_user == valid_user and input_pass == valid_pass) then valid = true
- if valid then print("Access Granted") else print("Access Denied")
- while true do
- rs.setBundledOutput("left", colors.purple ,true)
- sleep(3)
- rs.setBundledOutput("left" ,false)
- end
- --sleep(3)
- -- rs.setBundledOutput("left", colors.purple ,false)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement