Meliodas0_0

Phantom Forces Infinite Nades

Mar 28th, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. local nade_amount = math.huge
  2.  
  3. local network;
  4. local funcs;
  5. local char;
  6. local gamelogic;
  7. local effects;
  8.  
  9. for i,v in next, getgc() do
  10. if type(v) == "function" then
  11. for i2,v2 in next, debug.getupvalues(v) do
  12. if type(v2) == "table" and rawget(v2, 'send') then
  13. network = v2;
  14. end
  15. if type(v2) == "table" and rawget(v2, 'add') then
  16. funcs = v2;
  17. end
  18. if type(v2) == "table" and rawget(v2, 'addgun') then
  19. char = v2;
  20. end
  21. if type(v2) == "table" and rawget(v2, 'gammo') then
  22. gamelogic = v2;
  23. end
  24. if type(v2) == "table" and rawget(v2, 'breakwindow') then
  25. effects = v2;
  26. end
  27. end
  28. end
  29. end
  30.  
  31. spawn(function()
  32. repeat wait()
  33. if gamelogic.gammo ~= nade_amount then
  34. gamelogic.gammo = nade_amount
  35. end
  36. until gamelogic.gammo == nade_amount
  37. end)
  38. print(string.format("You have been given %s grenades!", tostring(nade_amount)))
Add Comment
Please, Sign In to add comment