Dr_Respektlos

test

Mar 4th, 2022 (edited)
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. local password = "password"
  2. local reset_key = "reset"
  3. local old_pullEvent = os.pullEvent
  4. os.pullEvent = os.pullEventRaw
  5. while true do  
  6.     term.clear()
  7.     term.setCursorPos(1, 1)
  8.     print("Please Enter Password:")
  9.     input = read("*")
  10.     if input == password then
  11.         redstone.setOutput("back", true)
  12.         sleep(5)
  13.         redstone.setOutput("back", false)
  14.     elseif input == reset_key then
  15.         break
  16.     end
  17. end
  18. os.pullEvent = old_pullEvent
  19.        
  20.        
Add Comment
Please, Sign In to add comment