--BROUGHT TO YOU BY RobloxScripter.com!--
local network = require(game.ReplicatedStorage.Framework.Library).Network
local rarities = {'Basic', 'Rare'} --rarities to delete
local strength = 1200000 --min strength to keep pet
local _G.mode = 'strength' -- 'rarity' or 'strength'
network.Fired('Open Egg'):Connect(function(a, b)
local tbl = b[1]
local pet
for i,v in pairs(game.ReplicatedStorage.Game.Pets:GetChildren()) do
if string.split(tostring(v), ' - ')[1] == tbl.id then
pet = v
end
end
if _G.mode == 'rarity' then
if table.find(rarities, require(pet:FindFirstChildOfClass('ModuleScript')).rarity) then
game.Workspace.__THINGS.__REMOTES['delete several pets']:InvokeServer({{tbl.uid}})
else
end
elseif _G.mode == 'strength' then
if tbl.s < strength then
game.Workspace.__THINGS.__REMOTES['delete several pets']:InvokeServer({{tbl.uid}})
else
end
end
end)