Andy73

startup to break CC :D (with CCTweaks)

Mar 24th, 2015
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. shell.exit()
  2.  
  3. local s=os.shutdown
  4.  
  5. os.shutdown=function()
  6.   print(c)
  7.   read()
  8.   s()
  9. end
  10.  
  11. c=0
  12. parallel.waitForAll(function()
  13. while true do
  14.   os.startTimer(0)
  15.   coroutine.yield"timer"
  16.   c=c+1
  17.   local txt="shell.run'lua'"
  18.   for i=1,#txt do
  19.     os.queueEvent("char",txt:sub(i,i))
  20.   end
  21.   os.queueEvent("key",keys.enter)
  22. end
  23. end,
  24. function()
  25. shell.run"lua"
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment