TheNadie

Untitled

Jan 2nd, 2019
2,233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.99 KB | None | 0 0
  1. --[[
  2. EXECUTE IT TO ACTIVATE/DEACTIVATE AUTO OPEN EGGS (and auto money farm)
  3. Made by ZFrogger#6467
  4. ]]
  5. function BuyAllitem()
  6. local plr = game.Players.LocalPlayer
  7. for _,v in pairs(plr.Inventory:GetChildren()) do
  8. if v:FindFirstChild("Item") and v.Value == false then
  9. game.ReplicatedStorage.Events.ShopEvents.requestBuy:FireServer(v.Name, "Magnet")
  10. end
  11. end
  12. for _,v in pairs(plr.BackpackInventory:GetChildren()) do
  13. if not v.Value then
  14. game.ReplicatedStorage.Events.ShopEvents.requestBuy:FireServer(v.Name, "Backpack")
  15. end
  16. end
  17. game.ReplicatedStorage.Events.ShopEvents.buyDoor:FireServer(5000)
  18. game.ReplicatedStorage.Events.ShopEvents.buyDoor:FireServer(50000)
  19. game.ReplicatedStorage.Events.ShopEvents.buyDoor:FireServer(500000)
  20. game.ReplicatedStorage.Events.ShopEvents.buyDoor:FireServer(1500000)
  21. for i = 1,4 do
  22. if plr.ChickenStats[i].Bought.Value == false then
  23. game.ReplicatedStorage.ChickenEvents.buyChicken:FireServer(i)
  24. end
  25. if plr.ChickenStats[i].Level.Value < 9 then
  26. for v = plr.ChickenStats[i].Level.Value,9 do
  27. game.ReplicatedStorage.ChickenEvents.requestUpgrade:FireServer(i,v)
  28. end
  29. end
  30. end
  31. game.Players.LocalPlayer.Character.Island:Destroy()
  32. Island = Instance.new("LocalScript", game.Players.LocalPlayer.Character)
  33. Island.Name = "Island"
  34. Island.Source = [[local folder = workspace.IslandInfo
  35. local plr = game.Players.LocalPlayer
  36. repeat
  37. wait()
  38. until plr.Character
  39. local root = plr.Character:WaitForChild("HumanoidRootPart")
  40. local d = true
  41. folder.Island.Touched:connect(function(hit)
  42. local h = hit.Parent:FindFirstChild("Humanoid")
  43. local torso = h.Parent:FindFirstChild("HumanoidRootPart")
  44. if h and torso then
  45. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  46. if plr == player and d then
  47. d = false
  48. root.CFrame = CFrame.new(folder.islandtp.Position)
  49. wait(3)
  50. d = true
  51. end
  52. end
  53. end)
  54. folder.Main.Touched:connect(function(hit)
  55. local h = hit.Parent:FindFirstChild("Humanoid")
  56. local torso = h.Parent:FindFirstChild("HumanoidRootPart")
  57. if h and torso then
  58. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  59. if plr == player and d then
  60. d = false
  61. root.CFrame = CFrame.new(folder.returntp.Position)
  62. wait(3)
  63. d = true
  64. end
  65. end
  66. end)]]
  67. _G.eggs = true
  68. farmeggs()
  69. end
  70. function farmmoney()
  71. local plr = game.Players.LocalPlayer
  72. for _,v in pairs(plr.Purchases:GetChildren()) do
  73. v.Value = true
  74. end
  75. if game.ReplicatedStorage.Tools:FindFirstChild("Spirit Magnet") and not plr.Backpack:FindFirstChild("Spirit Magnet") then
  76. game.ReplicatedStorage.Tools["Spirit Magnet"].Parent = plr.Backpack
  77. end
  78. if plr.PlayerGui.GameHUD:FindFirstChild("FullBackpack") then
  79. plr.PlayerGui.GameHUD:FindFirstChild("FullBackpack"):Destroy()
  80. end
  81. while _G.farm do
  82. wait(.1)
  83. local plr = game.Players.LocalPlayer
  84. local char = plr.Character.HumanoidRootPart
  85. if plr.Backpack:FindFirstChild("Spirit Magnet") then
  86. game.ReplicatedStorage.Events.MagnetEvents.requestGrab:FireServer("65",plr.Backpack["Spirit Magnet"])
  87. else
  88. game.ReplicatedStorage.Events.MagnetEvents.requestGrab:FireServer("65",plr.Character["Spirit Magnet"])
  89. end
  90. game.Workspace.Rings.Sell.CanCollide = false
  91. game.Workspace.Rings.Sell.CFrame = char.CFrame + Vector3.new(0,math.random(-1,1),0)
  92. if _G.maxvalue ~= nil then
  93. if plr.leaderstats.Money.Value >= _G.maxvalue then
  94. _G.farm = false
  95. BuyAllitem()
  96. break
  97. end
  98. elseif plr.leaderstats.Money.Value >= 10000000 then
  99. _G.farm = false
  100. BuyAllitem()
  101. break
  102. end
  103. end
  104. end
  105. function farmeggs()
  106. while _G.eggs do
  107. wait(.1)
  108. game.ReplicatedStorage.PetEvents.requesthatch:FireServer("Mythical Egg")
  109. game.ReplicatedStorage.PetEvents.requesthatch:FireServer("Epic Egg")
  110. game.ReplicatedStorage.PetEvents.requesthatch:FireServer("Legendary Egg")
  111. game.ReplicatedStorage.PetEvents.requesthatch:FireServer("Rare Egg")
  112. game.ReplicatedStorage.PetEvents.requesthatch:FireServer("Uncommon Egg")
  113. game.ReplicatedStorage.PetEvents.requesthatch:FireServer("Common Egg")
  114. end
  115. end
  116. if _G.farm then
  117. _G.farm = false
  118. elseif not _G.eggs then
  119. _G.farm = true
  120. farmmoney()
  121. end
  122. if _G.eggs then
  123. _G.eggs = false
  124. end
Add Comment
Please, Sign In to add comment