Advertisement
LokeYourLord

RocketLAUNCH

Jun 13th, 2015
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local mon = peripheral.wrap("right")
  2. local password = "launch"
  3. --SlowPrint Start
  4. function SlowText(Text)
  5.  for I=1,string.len(Text) do
  6.   NewText=string.sub(Text,I,I)
  7.   mon.write(NewText)
  8.   sleep(0.1)
  9.  end
  10. end
  11. --Slowprint End
  12. --Start
  13. mon.clear()
  14. while true do
  15.  term.clear()
  16.  term.setCursorPos(1,1)
  17.  write("ENTER PASSWORD TO INITIATE LAUNCH:")
  18.  local input = read("*")
  19.  if input == password then
  20.   term.clear()
  21.   term.setCursorPos(1,1)
  22.   textutils.slowPrint("ACCESS GRANTED.")
  23.   textutils.slowPrint("INITIATING LAUNCH SEQUENCE!")
  24.  else
  25.   term.clear()
  26.   term.setCursorPos(1,1)
  27.   print("ACCESS DENIED. LAUNCH CANCELED!")
  28.   sleep(3)
  29. end
  30. mon.setTextScale(2)
  31. mon.clear()
  32. mon.setCursorPos(3,5)
  33. mon.setTextColor(colors.green)
  34. SlowText("  LAUNCH")
  35. mon.setCursorPos(3,6)
  36. mon.setTextColor(colors.green)
  37. SlowText("INITIATED!")
  38. sleep(2)
  39. rs.setOutput("back",true)
  40. sleep(1)
  41. mon.clear()
  42. mon.setCursorPos(10,6)
  43. --Counter
  44. for I=20,1,-1 do
  45. mon.clear()
  46. mon.setCursorPos(3,2)
  47. mon.setTextColor(colors.red)
  48. NewNumber = tostring(I)
  49. mon.setTextScale(5)
  50. mon.write(NewNumber)
  51. sleep(1)
  52. end
  53. --Counter End
  54. mon.setTextScale(2)
  55. mon.clear()
  56. mon.setCursorPos(4,5)
  57. mon.setTextColor(colors.green)
  58. SlowText("LAUNCH!")
  59. sleep(4)
  60. rs.setOutput("back",false)
  61. sleep(5)
  62. mon.clear()
  63. --End
  64. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement