Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setBackgroundColor(colors.black)
- term.clear()
- local width, height = term.getSize()
- local chars = {"@", "#", "$", "%", "&", "*", "=", "?", "!", "/", "\\", "|"}
- local messages = {
- "YOU CANNOT ESCAPE.",
- "I SEE YOU.",
- "THERE IS NO HOPE.",
- "IT'S TOO LATE.",
- "DON'T BOTHER FIGHTING.",
- "YOUR FATE IS SEALED."
- }
- -- Function to flicker ASCII on the screen
- local function flicker()
- while true do
- for _ = 1, math.random(10, 50) do
- local x = math.random(1, width)
- local y = math.random(1, height)
- local char = chars[math.random(1, #chars)]
- term.setCursorPos(x, y)
- term.setTextColor(colors.white)
- term.write(char)
- end
- sleep(0.1)
- term.clear()
- end
- end
- -- Block user input with persistent scary messages
- local function blockInput()
- while true do
- local event, key = os.pullEvent("key")
- term.setCursorPos(1, height)
- term.setTextColor(colors.red)
- term.write(messages[math.random(1, #messages)])
- sleep(1)
- end
- end
- -- Check for floppy to restore access
- local function checkFloppy()
- while true do
- local event, side = os.pullEvent("disk")
- if disk.isPresent(side) and fs.exists("disk/startup") then
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setCursorPos(1, 1)
- print("Floppy detected. Restoring access...")
- sleep(2)
- fs.delete("startup")
- fs.copy("disk/startup", "startup")
- os.reboot()
- end
- end
- end
- -- Start everything in parallel
- parallel.waitForAny(flicker, blockInput, checkFloppy)
Advertisement
Add Comment
Please, Sign In to add comment