WaffleJohns

Common Tekkit Password

Jan 19th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. --Common Tekkit password Setup, not really mine
  2. -- Place this code in /startup
  3.  
  4. --Over the next two lines we will be making a back up of os.pullEvent as pullEvent, then we are going to remove the ability to terminate the program with ctrl-t, The very last line of code restores the ability. (These were copied from the wiki)
  5. local pullEvent = os.pullEvent
  6. os.pullEvent = os.pullEventRaw
  7.  
  8. local password = false
  9.  
  10. print("Password Motherfucka, do you know it?") --Samual L Jackson
  11. while password == false do
  12. if read("*") == "Password" then --The "read("*")" Makes all the typed symbols appear as "*", which is good for privacy.
  13. password = true
  14. end
  15. end
  16.  
  17.  
  18. os.pullEvent = pullEvent
Add Comment
Please, Sign In to add comment