Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _G.autofarmbysamirdevsxd = true
- _G.autowalktobossxd = true
- local plr = game.Players.LocalPlayer
- local char = plr.Character
- local function checkpets()
- local petsa = plr.PlayerGui.Gui.Submenus.PetsInventory.PetsFrame.Frame:GetChildren()
- local p = -1
- for i = 1,#petsa do
- p = p + 1
- end
- if p >= 148 then
- return true
- else
- return false
- end
- end
- local function feitem()
- for i = 1,#plr.Backpack:GetChildren() do
- if char ~= nil then
- plr.Backpack:GetChildren()[i].Parent = char
- end
- end
- end
- local function clickitem()
- if char ~= nil then
- for i = 1,#char:GetChildren() do
- if char:GetChildren()[i].ClassName == "Tool" then
- char:GetChildren()[i].RemoteClick:FireServer()
- game.ReplicatedStorage.Events.Clicked:FireServer()
- game.ReplicatedStorage.Events.UpdateData:InvokeServer()
- end
- end
- end
- end
- coroutine.resume(coroutine.create(function()
- while _G.autofarmbysamirdevsxd == true do
- repeat
- game.ReplicatedStorage.Events.HatchEggs:InvokeServer(
- game.ReplicatedStorage.Eggs["Golden Egg"],
- 3
- )
- until checkpets() == true
- local tabel = {}
- local whitelist = {"Deathspeaker","King Dominus","Pumpkin"}
- local pets = game.Players.LocalPlayer.PlayerGui.Gui.Submenus.PetsInventory.PetsFrame.Frame:GetChildren()
- for i = 1,#pets do
- local pet = pets[i]
- local pnum = pet.Name
- local num = tostring(pet.Name)
- if pnum ~= "UIGridLayout" then
- local pnamecg = pet.IMG:GetChildren()
- local pname = "Error"
- for i = 1,#pnamecg do
- pname = pnamecg[i].Name
- end
- local addtotable = false
- local golden = pet.Golden.Visible
- local shiny = pet.Shiny.Visible
- local rainbow = pet.Rainbow.Visible
- local equipped = pet.Equipped.Visible
- local nwl1 = false
- local nwl2 = false
- local nwl3 = false
- for i = 1,#whitelist do
- if pname ~= whitelist[i] then
- if nwl1 == false then
- nwl1 = true
- elseif nwl2 == false then
- nwl2 = true
- elseif nwl3 == false then
- nwl3 = true
- end
- end
- end
- if golden == false and shiny == false and rainbow == false and equipped == false and nwl1 == true and nwl2 == true and nwl3 == true then
- addtotable = true
- end
- if shiny == true then
- game.ReplicatedStorage.Events.PetCommand:FireServer(num, "Combine")
- end
- if addtotable == true then
- table.insert(tabel, num)
- end
- end
- end
- local sold = 0
- repeat
- game.ReplicatedStorage.Events.PetCommand:FireServer(
- {
- unpack(tabel)
- },
- "DeleteMulti"
- )
- sold = sold + 1
- until sold == 10
- tabel = {}
- end
- end))
- while wait() do
- if _G.autowalktobossxd == true and workspace:FindFirstChild("Boss") ~= nil then
- local bhrp = workspace.Boss.HumanoidRootPart
- char.Humanoid.WalkToPoint = Vector3.new(bhrp.Position.X,char.HumanoidRootPart.Position.Y,bhrp.Position.Z)
- feitem()
- clickitem()
- wait(0.55)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement