Quangdunght1

magnet simulator

Sep 29th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.22 KB | None | 0 0
  1. speed = 25
  2. --The higher this is the faster the autofarm will be.
  3. --Lower it if you lag when using this
  4. --Increase it if you think your internet and pc are good enough.
  5.  
  6. farm1 = false
  7. farm2 = false
  8. farm3 = false
  9. farm4 = false
  10. farm5 = false
  11. farm6 = false
  12. check = false
  13.  
  14. local library = loadstring(game:HttpGet("https://gist.githubusercontent.com/ixsy/ac2be9242ef6ab689bd93b05d27fcff5/raw/c52616120d5e8aff47a6ef4c4df36587893b6ba7/Library", true))()
  15.  
  16. local gui = library:CreateWindow({
  17. text = "Magnet Simulator"
  18. })
  19.  
  20. gui:AddToggle("AutoCoins", function(state)
  21. farm1 = (state)
  22. end)
  23.  
  24. gui:AddToggle("AutoRebirth", function(state)
  25. farm2 = (state)
  26. end)
  27.  
  28. gui:AddToggle("AutoSell", function(state)
  29. farm3 = (state)
  30. end)
  31.  
  32. gui:AddToggle("OpenEggs", function(state)
  33. farm4 = (state)
  34. end)
  35.  
  36. gui:AddToggle("AutoSpaceCoins", function(state)
  37. farm5 = (state)
  38. end)
  39.  
  40. gui:AddToggle("AutoShiny", function(state)
  41. farm6 = (state)
  42. end)
  43.  
  44. gui:AddLabel("Select Your Egg")
  45.  
  46. local Eggs
  47. Eggs = gui:AddDropdown({'Common Egg', 'Uncommon Egg', 'Rare Egg', 'Legendary Egg', 'Epic Egg', 'Mythical Egg', 'Meme Egg', 'Psychadelic Egg', 'Catacylsmic Egg', 'Super Egg', 'Dominus Egg', 'Demonic Egg', 'Overseer Egg', 'Magma Egg', 'Tycoonist Egg', 'Robot Egg', 'Dragon Egg', 'Aquatic Egg', 'Ninja Egg', 'Korblox Egg', 'Knight Egg'}, function(a)
  48. if a == "Psychadelic Egg" then
  49. _G.SelectedEgg = "Psychadelic Rebirth Egg"
  50. elseif a == "Catacylsmic Egg" then
  51. _G.SelectedEgg = "Rebirth Egg 2"
  52. else _G.SelectedEgg = a
  53. end
  54. end)
  55.  
  56. local VirtualUser=game:service'VirtualUser'
  57. game:service'Players'.LocalPlayer.Idled:connect(function()
  58. VirtualUser:CaptureController()
  59. VirtualUser:ClickButton2(Vector2.new())
  60. end)
  61.  
  62. game.Players.LocalPlayer.PlayerGui.GameHUD.FullBackpack.Position = UDim2.new(999,999,999,999)
  63. game.Workspace.Rings:WaitForChild("Sellx2")
  64. game.Workspace.Rings.Sellx2.CanCollide = false
  65. game.Workspace.Rings.Sellx2.Transparency = 1
  66. game.Players.LocalPlayer.PlayerGui.GameHUDNew.NotifHandler.Gain.Volume = 0
  67. game.Players.LocalPlayer.PlayerGui.GameHUDNew.Notifications.CoinGain.Cash.Volume = 0
  68.  
  69. function coins()
  70. if farm1 == true then
  71. for i=1,speed do
  72. game:GetService('ReplicatedStorage').Events.MagnetEvents['requestGrab']:FireServer("22000000", game.ReplicatedStorage.Tools["Spooky Long Power Magnet"])
  73. end
  74. end
  75. end
  76.  
  77. function rebirth()
  78. if farm2 == true then
  79. if check == false then
  80. check = true
  81. game.ReplicatedStorage.RebirthEvents.requestRebirth:FireServer(10000)
  82. wait(10)
  83. check = false
  84. end
  85. end
  86. end
  87.  
  88. function sell()
  89. if farm3 == true then
  90. a = string.split(game.Players.LocalPlayer.PlayerGui.GameHUDNew.StatHolders.Coins.TopShadow.Dark.DropText.TopLabel.Text,"/")
  91. if game.Players.LocalPlayer.PlayerGui.GameHUDNew.StatHolders.Coins.TopShadow.Dark.DropText.TopLabel.Text == a[2].."/"..a[2] then
  92. game.Workspace.Rings.Sellx2.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  93. wait(.4)
  94. game.Workspace.Rings.Sellx2.CFrame = CFrame.new(-423.297, 1.417, -849.868)
  95. end
  96. end
  97. end
  98.  
  99. function egg()
  100. if farm4 == true then
  101. game:GetService("ReplicatedStorage").PetEvents.requesthatch:FireServer(_G.SelectedEgg)
  102. end
  103. end
  104.  
  105. function spacecoins()
  106. if farm5 == true then
  107. for i=1,speed do
  108. game:GetService('ReplicatedStorage').Events.MagnetEvents['requestGrab']:FireServer("Space9", game.ReplicatedStorage.Tools["Spooky Long Power Magnet"])
  109. end
  110. end
  111. end
  112.  
  113. function shiny()
  114. if farm6 == true then
  115. for i,v in pairs(game.Players.LocalPlayer.PlayerGui.GameHUDNew.ConnectedBackgrounds.Shiny.Holder.DropShadow.Pages.Shop.Items:GetChildren()) do
  116. if v.Name == "ShinyButton" then
  117. if v.ImageColor3 == Color3.fromRGB(64,170,77) then
  118. game.ReplicatedStorage.ShinyEvents.requestMakeShiny:FireServer(tostring(v.PetName.Value))
  119. end
  120. end
  121. end
  122. end
  123. end
  124.  
  125. game:GetService('RunService').Stepped:connect(function()
  126. rebirth()
  127. end)
  128.  
  129. while true do wait()
  130. sell()
  131. coins()
  132. spacecoins()
  133. egg()
  134. shiny()
  135. if game.Players.LocalPlayer.PlayerGui.GameHUD:FindFirstChild("Egg") then
  136. game.Players.LocalPlayer.PlayerGui.GameHUD.Egg:Destroy()
  137. end
  138. if game.Players.LocalPlayer.PlayerGui.GameHUDNew.ConnectedBackgrounds.Shiny.Holder:FindFirstChild("Active") then
  139. game.Players.LocalPlayer.PlayerGui.GameHUDNew.ConnectedBackgrounds.Shiny.Holder:FindFirstChild("Active"):Destroy()
  140. end
  141. end
Add Comment
Please, Sign In to add comment