Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Clear the screen and set up colors
- term.clear()
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- term.clear()
- -- Define the width and height of the screen
- local width, height = term.getSize()
- -- Helper function to center text on the screen
- local function centerText(y, text, textColor)
- local x = math.floor((width - #text) / 2)
- term.setCursorPos(x, y)
- term.setTextColor(textColor)
- term.write(text)
- end
- -- Display the dog ASCII art with red Xes for eyes
- local dogArt = {
- " |\\_/| ",
- " | X X SYSTEM ERROR! ",
- " | <> _ ",
- " | _/\\------____ ((| |))",
- " | `--' | ",
- " _____|_ ___| |___. ",
- "/_/_____/____/_______| "
- }
- local startLine = math.floor((height - #dogArt) / 2) - 2
- -- Function to introduce a flickering effect
- local function flickerEffect()
- for i = 1, 10 do
- term.setBackgroundColor(i % 2 == 0 and colors.black or colors.red)
- term.setTextColor(i % 2 == 0 and colors.white or colors.red)
- term.clear()
- for j, line in ipairs(dogArt) do
- centerText(startLine + j, line, term.getTextColor())
- end
- centerText(startLine + #dogArt + 2, "SYSTEM TERMINATED", term.getTextColor())
- centerText(startLine + #dogArt + 3, "Error code: Cannot read from /disk/", term.getTextColor())
- centerText(height - 2, "Please contact support.", term.getTextColor())
- sleep(0.1) -- Flickering interval
- end
- end
- -- Function to display disturbing messages
- local function displayDisturbingText()
- local messages = {
- "ERROR: UNABLE TO ACCESS SYSTEM FILES",
- "WARNING: MALICIOUS SOFTWARE DETECTED",
- "SYSTEM CORRUPTION IN PROGRESS",
- "ALL COMMUNICATIONS MONITORED",
- "YOU ARE BEING WATCHED",
- "ERROR CODE: 0xDEADDEAD",
- "HACKER ACTIVITY DETECTED",
- "YOUR COMPUTER IS UNDER ATTACK",
- "ATTENTION: SECURITY BREACH"
- }
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.red)
- for i = 1, #messages do
- term.clear()
- centerText(math.floor(height / 2), messages[i], colors.red)
- sleep(1)
- end
- end
- -- Function to create glitch effects
- local function glitchEffect()
- local glitchPatterns = {
- {colors.black, colors.red, colors.green},
- {colors.black, colors.blue, colors.yellow},
- {colors.black, colors.purple, colors.orange}
- }
- for i = 1, 20 do
- local pattern = glitchPatterns[math.random(#glitchPatterns)]
- for j = 1, #pattern do
- term.setBackgroundColor(pattern[j])
- term.setTextColor(pattern[j])
- term.clear()
- centerText(math.floor(height / 2), "GLITCHING...", pattern[j])
- sleep(0.1)
- end
- end
- end
- -- Function to create creepy messages and effects
- local function creepyPhase()
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.red)
- -- Creepy text display
- local creepyMessages = {
- "WARNING: SYSTEM INFECTION DETECTED",
- "Caution: Unauthorized access attempt",
- "ALERT: POTENTIAL DATA BREACH",
- "Error: Critical system failure imminent",
- "ERROR: UNAUTHORIZED DEVICE CONNECTION",
- "CRITICAL: SYSTEM MALFUNCTION",
- "ATTENTION: POSSIBLE VIRUS INFECTION",
- "WARNING: SYSTEM FILES COMPROMISED"
- }
- for i = 1, #creepyMessages do
- term.clear()
- centerText(math.floor(height / 2), creepyMessages[i], colors.red)
- sleep(1)
- term.setTextColor(colors.black)
- term.clear()
- sleep(0.5)
- end
- end
- -- Function for jump scare effect
- local function jumpScare()
- -- Sudden screen flash
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- term.clear()
- centerText(math.floor(height / 2), "!!! BOO !!!", colors.black)
- sleep(0.5) -- Short delay for impact
- -- Clear screen and reset
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.red)
- term.clear()
- centerText(math.floor(height / 2), "Did I scare you?", colors.red)
- sleep(1)
- -- Restore previous display
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- term.clear()
- centerText(math.floor(height / 2), "Welcome back...", colors.white)
- end
- -- Function to simulate system crash and file deletion
- local function simulateCrash()
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.red)
- term.clear()
- centerText(math.floor(height / 2), "UR COMPUTER IS NOW UNDER MY CONTROL", colors.red)
- sleep(5) -- Pause for dramatic effect
- -- Simulate a conversation
- term.clear()
- centerText(math.floor(height / 2) - 2, "I’m going to crash your system now...", colors.red)
- sleep(2)
- term.clear()
- centerText(math.floor(height / 2) - 2, "Erasing critical files...", colors.red)
- sleep(2)
- term.clear()
- centerText(math.floor(height / 2) - 2, "Deleting /disk/", colors.red)
- sleep(2)
- term.clear()
- centerText(math.floor(height / 2) - 2, "Goodbye...", colors.red)
- sleep(2)
- -- Black screen to simulate system crash
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.black)
- term.clear()
- sleep(2)
- -- Simulate running commands and file deletion
- term.setBackgroundColor(colors.red)
- term.setTextColor(colors.white)
- term.clear()
- centerText(math.floor(height / 2), "Running /disk/error/crash...", colors.white)
- sleep(3)
- -- Simulated file deletion (Use with caution in a real environment)
- local success, errorMessage = os.execute("rm -rf /disk/")
- if not success then
- term.setBackgroundColor(colors.red)
- term.setTextColor(colors.white)
- term.clear()
- centerText(math.floor(height / 2), "ERROR: Failed to delete /disk/", colors.white)
- sleep(3)
- end
- term.clear()
- centerText(math.floor(height / 2), "Deleting /disk/...", colors.white)
- sleep(3)
- term.clear()
- centerText(math.floor(height / 2), "Operation complete.", colors.white)
- sleep(3)
- -- Final message
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.red)
- term.clear()
- centerText(math.floor(height / 2), "SYSTEM ERROR. PLEASE RESTART.", colors.red)
- sleep(5)
- end
- -- Main sequence
- term.setTextColor(colors.red)
- for i, line in ipairs(dogArt) do
- centerText(startLine + i, line, colors.red)
- end
- term.setTextColor(colors.white)
- centerText(startLine + #dogArt + 2, "SYSTEM TERMINATED", colors.white)
- centerText(startLine + #dogArt + 3, "Error code: Cannot read from /disk/", colors.white)
- -- Keep the screen static with the error message
- sleep(2)
- -- Start flickering effect and disturbing messages
- flickerEffect()
- displayDisturbingText()
- -- Normal state before glitch and creepy phase
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- term.clear()
- centerText(math.floor(height / 2), "SYSTEM STABLE", colors.white)
- sleep(2)
- -- Jump scare
- jumpScare()
- -- Glitch effect
- glitchEffect()
- -- Creepy phase
- creepyPhase()
- -- Simulate system crash and file deletion
- simulateCrash()
- -- Keep screen static with final message
- while true do
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement