Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Credits are going to noname#0073 ( dragen on YT )
- _G.Settings = {
- AutoEgg = {
- Enabled = false;
- AmountOpenedBeforeClear = 15;
- Tier = 1;
- KeepByStrengthFactor = {
- Enabled = false;
- MinStrengthToKeep = 5;
- };
- IndividualPetKeepSettings = {
- Enabled = false;
- ['1'] = {
- ['Cat'] = false;
- ['Dog'] = false;
- ['Bunny'] = false;
- ['Bear'] = false;
- ['Cow'] = false;
- ['Fox'] = true;
- ['Dalmatian'] = true;
- ['Racoon'] = true;
- };
- ['2'] = {
- ['Ducky'] = false;
- ['Turtle'] = false;
- ['Flamingo'] = true;
- ['Shark'] = true;
- };
- ['3'] = {
- ['Parrot'] = false;
- ['Monkey'] = false;
- ['Tiger'] = true;
- ['Dino'] = true;
- };
- };
- };
- CoinFarm = {
- Enabled = true;
- FarmMultiplier = 50;
- MinHP = 0;
- MaxHP = math.huge;
- }
- };
- -- RE EXECUTE 42 LINES(ONLY THEM, NOT WHOLE SCRIPT) ABOVE WITH NEW PARAMETERS IF YOU WANT TO CHANGE THEM AND WONT TO REJOIN GAME
- local Structure = {
- Pets = {
- ['1'] = {
- ['Cat'] = 'rbxassetid://4360069887';
- ['Dog'] = 'rbxassetid://4360070694';
- ['Bunny'] = 'rbxassetid://4360069633';
- ['Bear'] = 'rbxassetid://4360069391';
- ['Cow'] = 'rbxassetid://4360070120';
- ['Fox'] = 'rbxassetid://4360071727';
- ['Dalmatian'] = 'rbxassetid://4360070349';
- ['Racoon'] = 'rbxassetid://4360074644';
- };
- ['2'] = {
- ['Ducky'] = 'rbxassetid://4360071131';
- ['Turtle'] = 'rbxassetid://4360075663';
- ['Flamingo'] = 'rbxassetid://4360071500';
- ['Shark'] = 'rbxassetid://4360074880';
- };
- ['3'] = {
- ['Parrot'] = 'rbxassetid://4360073740';
- ['Monkey'] = 'rbxassetid://4360072918';
- ['Dino'] = 'rbxassetid://4360070478';
- ['Tiger'] = 'rbxassetid://4360075403';
- };
- };
- Functions = {
- GetPlayerMoney = function()
- local Success, Money = pcall(function()
- local Original = game.Players.LocalPlayer.PlayerGui.Currency.Frame.Coins.Amount.Text
- local Ready = ''
- for Index = 1, #Original:split(',') do
- Ready = Ready .. Original:split(',')[Index]
- end
- return tonumber(Ready)
- end)
- return Money
- end;
- BuyEgg = function()
- workspace.__THINGS.__REMOTES['buy egg']:InvokeServer(
- {
- {
- tostring(_G.Settings.AutoEgg.Tier)
- };
- {
- false
- }
- }
- )
- end;
- DeletePet = function(UPI)
- workspace.__THINGS.__REMOTES['delete pet']:InvokeServer(
- {
- {
- UPI
- };
- {
- false
- }
- }
- )
- end;
- EquipPet = function(UPI)
- workspace.__THINGS.__REMOTES['equip pet']:InvokeServer(
- {
- {
- UPI
- };
- {
- false
- }
- }
- )
- end;
- UnequipPet = function(UPI)
- workspace.__THINGS.__REMOTES['unequip pet']:InvokeServer(
- {
- {
- UPI
- };
- {
- false
- }
- }
- )
- end;
- AutoPickUpLoot = function()
- workspace['__THINGS'].Drops.ChildAdded:Connect(function()
- pcall(function()
- for Index, Drop in pairs(workspace.__THINGS.Drops:GetChildren()) do
- for Try = 0, 8, 1 do
- workspace.__THINGS.__REMOTES['take drop']:FireServer(
- {
- {
- Drop.Name, 'id' .. Try
- };
- {
- false, false
- };
- }
- )
- end
- end
- end)
- end)
- end;
- AutoPickUpCoins = function()
- while true do
- while _G.Settings.CoinFarm.Enabled do
- for PetIndex, Pet in pairs(game.Players.LocalPlayer:WaitForChild'PlayerGui':WaitForChild'Inventory':WaitForChild'Frame':WaitForChild'Container':WaitForChild'Holder':WaitForChild'Pets':GetChildren()) do
- if Pet:FindFirstChild'Equipped' and Pet.Equipped.Visible then
- coroutine.wrap(function()
- while true do
- for CoinIndex, Coin in pairs(workspace.__THINGS.Coins:GetChildren()) do
- if Coin and not Coin:FindFirstChild'Already' and Coin:FindFirstChild'Settings' and Coin.Settings.Health.Value >= _G.Settings.CoinFarm.MinHP and Coin.Settings.Health.Value <= _G.Settings.CoinFarm.MaxHP then
- Instance.new('NumberValue', Coin).Name = 'Already'
- coroutine.wrap(function()
- workspace.__THINGS.__REMOTES['join coin']:InvokeServer(
- {
- {
- Coin.Name, Pet.Name
- };
- {
- false, false
- };
- }
- );
- end)()
- coroutine.wrap(function()
- workspace.__THINGS.__REMOTES['change pet target']:FireServer(
- {
- {
- Pet.Name, 'Coin', Coin.Name
- };
- {
- false, false, false
- };
- }
- );
- end)()
- for i = 1, _G.Settings.CoinFarm.FarmMultiplier do
- coroutine.wrap(function()
- workspace.__THINGS.__REMOTES['farm coin']:FireServer(
- {
- {
- Coin.Name, Pet.Name
- };
- {
- false, false
- };
- }
- );
- end)()
- end
- repeat
- wait()
- until workspace.__THINGS.Coins:FindFirstChild(Coin.Name) == nil or game.Players.LocalPlayer.Character == nil or Coin == nil
- end
- end
- end
- end)()
- end
- end
- repeat
- wait()
- until workspace:FindFirstChild'COCK'
- end
- repeat
- wait()
- until _G.Settings.CoinFarm.Enabled
- end
- end;
- };
- };
- game:GetService"StarterGui":SetCore("SendNotification", {
- Title = "Pet Hacker v1.0",
- Text = "Writed by noname#0073"
- })
- coroutine.wrap(Structure.Functions.AutoPickUpCoins)()
- coroutine.wrap(Structure.Functions.AutoPickUpLoot)()
- coroutine.wrap(function()
- coroutine.wrap(function()
- game.Players.LocalPlayer:WaitForChild'PlayerScripts':WaitForChild'Scripts':WaitForChild'Game':WaitForChild'Eggs':Destroy()
- end)()
- while true do
- while _G.Settings.AutoEgg.Enabled do
- for Index = 1, _G.Settings.AutoEgg.AmountOpenedBeforeClear, 1 do
- coroutine.wrap(function()
- Structure.Functions.BuyEgg()
- end)()
- end
- wait(1)
- local ActivePets = {}
- for PetIndex, Pet in pairs(game.Players.LocalPlayer:WaitForChild'PlayerGui':WaitForChild'Inventory':WaitForChild'Frame':WaitForChild'Container':WaitForChild'Holder':WaitForChild'Pets':GetChildren()) do
- if Pet:FindFirstChild'Equipped' and Pet.Equipped.Visible then
- table.insert(ActivePets, { UPI = Pet.Name, Strength = tonumber(Pet.Strength.Text) })
- end
- end
- for PetIndex, Pet in pairs(game.Players.LocalPlayer:WaitForChild'PlayerGui':WaitForChild'Inventory':WaitForChild'Frame':WaitForChild'Container':WaitForChild'Holder':WaitForChild'Pets':GetChildren()) do
- coroutine.wrap(function()
- if Pet:FindFirstChild'Equipped' and not Pet.Equipped.Visible then
- for PetNum, PetInfo in pairs(ActivePets) do
- if Pet:FindFirstChild'Strength' and tonumber(Pet.Strength.Text) > PetInfo.Strength then
- Structure.Functions.UnequipPet(PetInfo.UPI)
- Structure.Functions.EquipPet(Pet.Name)
- PetInfo.UPI = Pet.Name
- PetInfo.Strength = tonumber(Pet.Strength.Text)
- end
- end
- end
- end)()
- end
- for Index, Pet in pairs(game.Players.LocalPlayer:WaitForChild'PlayerGui':WaitForChild'Inventory':WaitForChild'Frame':WaitForChild'Container':WaitForChild'Holder':WaitForChild'Pets':GetChildren()) do
- coroutine.wrap(function()
- if Pet:IsA'ImageButton' then
- if Pet:FindFirstChild'Equipped' and not Pet.Equipped.Visible then
- if _G.Settings.AutoEgg.KeepByStrengthFactor.Enabled then
- if _G.Settings.AutoEgg.IndividualPetKeepSettings.Enabled then
- for PetName, Thumb in pairs(Structure.Pets[tostring(_G.Settings.AutoEgg.Tier)]) do
- if _G.Settings.AutoEgg.IndividualPetKeepSettings[tostring(_G.Settings.AutoEgg.Tier)][PetName] == false and Structure.Pets[tostring(_G.Settings.AutoEgg.Tier)][PetName] and Pet.Thumbnail.Image == Structure.Pets[tostring(_G.Settings.AutoEgg.Tier)][PetName] then
- if not (tonumber(Pet.Strength.Text) >= _G.Settings.AutoEgg.KeepByStrengthFactor.MinStrengthToKeep) then
- Structure.Functions.DeletePet(Pet.Name)
- end
- end
- end
- else
- if not (tonumber(Pet.Strength.Text) >= _G.Settings.AutoEgg.KeepByStrengthFactor.MinStrengthToKeep) then
- Structure.Functions.DeletePet(Pet.Name)
- end
- end
- elseif _G.Settings.AutoEgg.IndividualPetKeepSettings.Enabled then
- for PetName, Thumb in pairs(Structure.Pets[tostring(_G.Settings.AutoEgg.Tier)]) do
- if _G.Settings.AutoEgg.IndividualPetKeepSettings[tostring(_G.Settings.AutoEgg.Tier)][PetName] == false and Structure.Pets[tostring(_G.Settings.AutoEgg.Tier)][PetName] and Pet.Thumbnail.Image == Structure.Pets[tostring(_G.Settings.AutoEgg.Tier)][PetName] then
- Structure.Functions.DeletePet(Pet.Name)
- end
- end
- end
- end
- end
- end)()
- end
- wait()
- end
- repeat
- wait()
- until _G.Settings.AutoEgg.Enabled
- end
- end)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement