PG_MCVN

magnet bagpack

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