Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function login()
- while true do
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.green)
- print("Please enter your PIN.")
- input = read("*")
- if input == "3285" then
- print("Account Accessed.")
- withdraw()
- else
- print("Wrong PIN. Locked out for 5 minutes.")
- sleep(300)
- end
- end
- end
- local function withdraw()
- print("32 or 64")
- input = read()
- if input == "32" then
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.suck(32)
- turtle.turnRight()
- turtle.turnRight()
- turtle.drop(32)
- end
- if input == "64" then
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.suck(64)
- turtle.turnRight()
- turtle.turnRight()
- turtle.drop(64)
- end
- end
- -------------
- ----START----
- -------------
- term.clear()
- login()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement