Advertisement
DOGGYWOOF

Untitled

Aug 22nd, 2024 (edited)
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.34 KB | None | 0 0
  1. -- Clear the screen and set up colors
  2. term.clear()
  3. term.setBackgroundColor(colors.black)
  4. term.setTextColor(colors.white)
  5. term.clear()
  6.  
  7. -- Define the width and height of the screen
  8. local width, height = term.getSize()
  9.  
  10. -- Helper function to center text on the screen
  11. local function centerText(y, text, textColor)
  12. local x = math.floor((width - #text) / 2)
  13. term.setCursorPos(x, y)
  14. term.setTextColor(textColor)
  15. term.write(text)
  16. end
  17.  
  18. -- Display the dog ASCII art with red Xes for eyes
  19. local dogArt = {
  20. " |\\_/| ",
  21. " | X X SYSTEM ERROR! ",
  22. " | <> _ ",
  23. " | _/\\------____ ((| |))",
  24. " | `--' | ",
  25. " _____|_ ___| |___. ",
  26. "/_/_____/____/_______| "
  27. }
  28.  
  29. local startLine = math.floor((height - #dogArt) / 2) - 2
  30.  
  31. -- Function to introduce a flickering effect
  32. local function flickerEffect()
  33. for i = 1, 10 do
  34. term.setBackgroundColor(i % 2 == 0 and colors.black or colors.red)
  35. term.setTextColor(i % 2 == 0 and colors.white or colors.red)
  36. term.clear()
  37. for j, line in ipairs(dogArt) do
  38. centerText(startLine + j, line, term.getTextColor())
  39. end
  40. centerText(startLine + #dogArt + 2, "SYSTEM TERMINATED", term.getTextColor())
  41. centerText(startLine + #dogArt + 3, "Error code: Cannot read from /disk/", term.getTextColor())
  42. centerText(height - 2, "Please contact support.", term.getTextColor())
  43. sleep(0.1) -- Flickering interval
  44. end
  45. end
  46.  
  47. -- Function to display disturbing messages
  48. local function displayDisturbingText()
  49. local messages = {
  50. "ERROR: UNABLE TO ACCESS SYSTEM FILES",
  51. "WARNING: MALICIOUS SOFTWARE DETECTED",
  52. "SYSTEM CORRUPTION IN PROGRESS",
  53. "ALL COMMUNICATIONS MONITORED",
  54. "YOU ARE BEING WATCHED",
  55. "ERROR CODE: 0xDEADDEAD",
  56. "HACKER ACTIVITY DETECTED",
  57. "YOUR COMPUTER IS UNDER ATTACK",
  58. "ATTENTION: SECURITY BREACH"
  59. }
  60.  
  61. term.setBackgroundColor(colors.black)
  62. term.setTextColor(colors.red)
  63. for i = 1, #messages do
  64. term.clear()
  65. centerText(math.floor(height / 2), messages[i], colors.red)
  66. sleep(1)
  67. end
  68. end
  69.  
  70. -- Function to create glitch effects
  71. local function glitchEffect()
  72. local glitchPatterns = {
  73. {colors.black, colors.red, colors.green},
  74. {colors.black, colors.blue, colors.yellow},
  75. {colors.black, colors.purple, colors.orange}
  76. }
  77.  
  78. for i = 1, 20 do
  79. local pattern = glitchPatterns[math.random(#glitchPatterns)]
  80. for j = 1, #pattern do
  81. term.setBackgroundColor(pattern[j])
  82. term.setTextColor(pattern[j])
  83. term.clear()
  84. centerText(math.floor(height / 2), "GLITCHING...", pattern[j])
  85. sleep(0.1)
  86. end
  87. end
  88. end
  89.  
  90. -- Function to create creepy messages and effects
  91. local function creepyPhase()
  92. term.setBackgroundColor(colors.black)
  93. term.setTextColor(colors.red)
  94.  
  95. -- Creepy text display
  96. local creepyMessages = {
  97. "WARNING: SYSTEM INFECTION DETECTED",
  98. "Caution: Unauthorized access attempt",
  99. "ALERT: POTENTIAL DATA BREACH",
  100. "Error: Critical system failure imminent",
  101. "ERROR: UNAUTHORIZED DEVICE CONNECTION",
  102. "CRITICAL: SYSTEM MALFUNCTION",
  103. "ATTENTION: POSSIBLE VIRUS INFECTION",
  104. "WARNING: SYSTEM FILES COMPROMISED"
  105. }
  106.  
  107. for i = 1, #creepyMessages do
  108. term.clear()
  109. centerText(math.floor(height / 2), creepyMessages[i], colors.red)
  110. sleep(1)
  111. term.setTextColor(colors.black)
  112. term.clear()
  113. sleep(0.5)
  114. end
  115. end
  116.  
  117. -- Function for jump scare effect
  118. local function jumpScare()
  119. -- Sudden screen flash
  120. term.setBackgroundColor(colors.white)
  121. term.setTextColor(colors.black)
  122. term.clear()
  123. centerText(math.floor(height / 2), "!!! BOO !!!", colors.black)
  124. sleep(0.5) -- Short delay for impact
  125.  
  126. -- Clear screen and reset
  127. term.setBackgroundColor(colors.black)
  128. term.setTextColor(colors.red)
  129. term.clear()
  130. centerText(math.floor(height / 2), "Did I scare you?", colors.red)
  131. sleep(1)
  132.  
  133. -- Restore previous display
  134. term.setBackgroundColor(colors.black)
  135. term.setTextColor(colors.white)
  136. term.clear()
  137. centerText(math.floor(height / 2), "Welcome back...", colors.white)
  138. end
  139.  
  140. -- Function to simulate system crash and file deletion
  141. local function simulateCrash()
  142. term.setBackgroundColor(colors.black)
  143. term.setTextColor(colors.red)
  144. term.clear()
  145. centerText(math.floor(height / 2), "UR COMPUTER IS NOW UNDER MY CONTROL", colors.red)
  146. sleep(5) -- Pause for dramatic effect
  147.  
  148. -- Simulate a conversation
  149. term.clear()
  150. centerText(math.floor(height / 2) - 2, "I’m going to crash your system now...", colors.red)
  151. sleep(2)
  152. term.clear()
  153. centerText(math.floor(height / 2) - 2, "Erasing critical files...", colors.red)
  154. sleep(2)
  155. term.clear()
  156. centerText(math.floor(height / 2) - 2, "Deleting /disk/", colors.red)
  157. sleep(2)
  158. term.clear()
  159. centerText(math.floor(height / 2) - 2, "Goodbye...", colors.red)
  160. sleep(2)
  161.  
  162. -- Black screen to simulate system crash
  163. term.setBackgroundColor(colors.black)
  164. term.setTextColor(colors.black)
  165. term.clear()
  166. sleep(2)
  167.  
  168. -- Simulate running commands and file deletion
  169. term.setBackgroundColor(colors.red)
  170. term.setTextColor(colors.white)
  171. term.clear()
  172. centerText(math.floor(height / 2), "Running /disk/error/crash...", colors.white)
  173. sleep(3)
  174.  
  175. -- Simulated file deletion (Use with caution in a real environment)
  176. local success, errorMessage = os.execute("rm -rf /disk/")
  177. if not success then
  178. term.setBackgroundColor(colors.red)
  179. term.setTextColor(colors.white)
  180. term.clear()
  181. centerText(math.floor(height / 2), "ERROR: Failed to delete /disk/", colors.white)
  182. sleep(3)
  183. end
  184.  
  185. term.clear()
  186. centerText(math.floor(height / 2), "Deleting /disk/...", colors.white)
  187. sleep(3)
  188. term.clear()
  189. centerText(math.floor(height / 2), "Operation complete.", colors.white)
  190. sleep(3)
  191.  
  192. -- Final message
  193. term.setBackgroundColor(colors.black)
  194. term.setTextColor(colors.red)
  195. term.clear()
  196. centerText(math.floor(height / 2), "SYSTEM ERROR. PLEASE RESTART.", colors.red)
  197. sleep(5)
  198. end
  199.  
  200. -- Main sequence
  201. term.setTextColor(colors.red)
  202. for i, line in ipairs(dogArt) do
  203. centerText(startLine + i, line, colors.red)
  204. end
  205.  
  206. term.setTextColor(colors.white)
  207. centerText(startLine + #dogArt + 2, "SYSTEM TERMINATED", colors.white)
  208. centerText(startLine + #dogArt + 3, "Error code: Cannot read from /disk/", colors.white)
  209.  
  210. -- Keep the screen static with the error message
  211. sleep(2)
  212.  
  213. -- Start flickering effect and disturbing messages
  214. flickerEffect()
  215. displayDisturbingText()
  216.  
  217. -- Normal state before glitch and creepy phase
  218. term.setBackgroundColor(colors.black)
  219. term.setTextColor(colors.white)
  220. term.clear()
  221. centerText(math.floor(height / 2), "SYSTEM STABLE", colors.white)
  222. sleep(2)
  223.  
  224. -- Jump scare
  225. jumpScare()
  226.  
  227. -- Glitch effect
  228. glitchEffect()
  229.  
  230. -- Creepy phase
  231. creepyPhase()
  232.  
  233. -- Simulate system crash and file deletion
  234. simulateCrash()
  235.  
  236. -- Keep screen static with final message
  237. while true do
  238. sleep(1)
  239. end
  240.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement