dogerealyt123

huge cat gen

Dec 18th, 2021
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. --BROUGHT TO YOU BY ROBLOXSCRIPTS.NET!--
  2.  
  3. --// localizations
  4.  
  5. local rconsoleprint = rconsoleprint;
  6. local rconsolename = rconsolename;
  7.  
  8. local math_random = math.random;
  9. local coroutine_wrap = coroutine.wrap;
  10. local task_wait = task.wait;
  11. local warn = warn;
  12.  
  13. --// define init variables
  14.  
  15. local code_count = 100000;
  16. local characters_list = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"};
  17. local character_list_length = #characters_list;
  18.  
  19. local redeem_remote = workspace.__THINGS.__REMOTES:WaitForChild("redeem merch code");
  20.  
  21. --// create working codes file
  22.  
  23. if not isfile("working_codes.txt") then
  24. writefile("working_codes.txt", "");
  25. end;
  26.  
  27. --// function to generate a random 10 character code
  28.  
  29. function generate_random_code()
  30. local code_string = "";
  31.  
  32. for index = 1, 10 do
  33. code_string = code_string .. characters_list[math_random(1, character_list_length)];
  34. end;
  35.  
  36. return "pet-" .. code_string;
  37. end;
  38.  
  39. --// stuff to output debug data to the rconsole
  40. local checked_amount = 0;
  41. local working_amount = 0;
  42.  
  43. local function output_debug_data()
  44. rconsolename("Huge Cat Generator | Checked: " .. checked_amount .. "/" .. code_count .. " | Working: " .. working_amount);
  45. end;
  46.  
  47. output_debug_data();
  48.  
  49. --// main bruteforce loop
  50.  
  51. for index = 1, code_count do
  52. local random_code = generate_random_code();
  53. local code_redeem = redeem_remote:InvokeServer({random_code});
  54. local response_status = code_redeem[1];
  55. local response_message = code_redeem[2];
  56.  
  57. warn(response_message); -- if you remove the wait(3) at the end of the loop, this will be "You are trying this too much"
  58.  
  59. checked_amount = checked_amount + 1;
  60.  
  61. if not response_status then
  62. rconsoleprint("@@RED@@");
  63. rconsoleprint("[NOT WORKING] ");
  64. rconsoleprint("@@WHITE@@");
  65. rconsoleprint(random_code .. "\n");
  66.  
  67. output_debug_data();
  68. else
  69. working_amount = working_amount + 1;
  70.  
  71. rconsoleprint("@@LIGHT_GREEN@@");
  72. rconsoleprint("[WORKING] ");
  73. rconsoleprint("@@WHITE@@");
  74. rconsoleprint(random_code .. "\n");
  75.  
  76. appendfile("working codes.txt", random_code .. "\n");
  77.  
  78. output_debug_data();
  79. end;
  80.  
  81. wait(3);
  82. end;
Advertisement
Add Comment
Please, Sign In to add comment