Advertisement
pa1nx9

Pet Simulator X AUTO DELETE PETS

Nov 12th, 2021
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. local network = require(game.ReplicatedStorage.Framework.Library).Network
  2.  
  3. local rarities = {'Basic', 'Rare'} --rarities to delete
  4. local strength = 1200000 --min strength to keep pet
  5.  
  6. local _G.mode = 'strength' -- 'rarity' or 'strength'
  7.  
  8. network.Fired('Open Egg'):Connect(function(a, b)
  9. local tbl = b[1]
  10. local pet
  11. for i,v in pairs(game.ReplicatedStorage.Game.Pets:GetChildren()) do
  12. if string.split(tostring(v), ' - ')[1] == tbl.id then
  13. pet = v
  14. end
  15. end
  16. if _G.mode == 'rarity' then
  17. if table.find(rarities, require(pet:FindFirstChildOfClass('ModuleScript')).rarity) then
  18. game.Workspace.__THINGS.__REMOTES['delete several pets']:InvokeServer({{tbl.uid}})
  19. else
  20.  
  21. end
  22. elseif _G.mode == 'strength' then
  23. if tbl.s < strength then
  24. game.Workspace.__THINGS.__REMOTES['delete several pets']:InvokeServer({{tbl.uid}})
  25. else
  26.  
  27. end
  28. end
  29. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement