MudkipTheEpic

Tron Virus for Pixel's Game

May 3rd, 2013
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. local hackWord="H4XLOL" --Change to whatever
  2. local hackT={}
  3. string.gsub(hackWord,"%s","%_")
  4. string.gsub(hackWord,"(.)",function(j) table.insert(hackT,j) end)
  5.  
  6.  
  7. rednet.open("left")
  8. while true do
  9. a,b=rednet.receive()
  10. if b=="TRON:pingcon" then
  11. print("Hacking someone with "..hackWord..".....")
  12. rednet.send(a,"TRON:pongcon")
  13. repeat
  14. local x,y=math.random(-99,99-#hackWord),math.random(-99,99)
  15. for i=1,#hackT do
  16. rednet.send(a,'[1]="MOVE",[2]={["y"]='..y..',["x"]='..x+(i-1)..',},[3]="'..hackT[i]..'"')
  17. end
  18. local i,m=rednet.receive(0.1)
  19. until m=="[1]=\"DIE\","
  20. print("Hacked someone, they failed. :P")
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment