Advertisement
lucaslulu

Script for New Update Magnet Sim

Sep 22nd, 2019
1,196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.23 KB | None | 0 0
  1. --for update magnet
  2. local newGui = Instance.new("ScreenGui")
  3. local mainFrame = Instance.new("Frame")
  4. local close = Instance.new("TextButton")
  5. local autoFarm = Instance.new("TextButton")
  6. local autoRebirth = Instance.new("TextButton")
  7. local autoSell = Instance.new("TextButton")
  8. local credits = Instance.new("TextLabel")
  9. local topBar = Instance.new("Frame")
  10. local name = Instance.new("TextLabel")
  11. --Properties:
  12. newGui.Name = "newGui"
  13. newGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  14. newGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  15.  
  16. mainFrame.Name = "mainFrame"
  17. mainFrame.Parent = newGui
  18. mainFrame.Active = true
  19. mainFrame.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  20. mainFrame.BorderSizePixel = 0
  21. mainFrame.Position = UDim2.new(0.212732926, 0, 0.41292876, 0)
  22. mainFrame.Size = UDim2.new(0, 281, 0, 195)
  23.  
  24. close.Name = "close"
  25. close.Parent = mainFrame
  26. close.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  27. close.BorderSizePixel = 0
  28. close.Position = UDim2.new(0.88967973, 0, 0, 0)
  29. close.Size = UDim2.new(0, 31, 0, 34)
  30. close.Font = Enum.Font.SourceSans
  31. close.Text = "X"
  32. close.TextColor3 = Color3.new(1, 1, 1)
  33. close.TextScaled = true
  34. close.TextSize = 14
  35. close.TextWrapped = true
  36.  
  37. autoFarm.Name = "autoFarm"
  38. autoFarm.Parent = mainFrame
  39. autoFarm.BackgroundColor3 = Color3.new(0.862745, 0, 0)
  40. autoFarm.BackgroundTransparency = 0.40000000596046
  41. autoFarm.BorderSizePixel = 0
  42. autoFarm.Position = UDim2.new(0, 0, 0.230769232, 0)
  43. autoFarm.Size = UDim2.new(0.449999988, 0, 0.200000003, 0)
  44. autoFarm.Font = Enum.Font.SourceSans
  45. autoFarm.Text = "AUTO FARM: OFF"
  46. autoFarm.TextColor3 = Color3.new(1, 1, 1)
  47. autoFarm.TextScaled = true
  48. autoFarm.TextSize = 14
  49. autoFarm.TextWrapped = true
  50.  
  51. autoRebirth.Name = "autoRebirth"
  52. autoRebirth.Parent = mainFrame
  53. autoRebirth.BackgroundColor3 = Color3.new(0.862745, 0, 0)
  54. autoRebirth.BackgroundTransparency = 0.40000000596046
  55. autoRebirth.BorderSizePixel = 0
  56. autoRebirth.Position = UDim2.new(0, 0, 0.708999991, 0)
  57. autoRebirth.Size = UDim2.new(0.449999988, 0, 0.200000003, 0)
  58. autoRebirth.Font = Enum.Font.SourceSans
  59. autoRebirth.Text = "AUTO REBIRTH: OFF"
  60. autoRebirth.TextColor3 = Color3.new(1, 1, 1)
  61. autoRebirth.TextScaled = true
  62. autoRebirth.TextSize = 14
  63. autoRebirth.TextWrapped = true
  64.  
  65. autoSell.Name = "autoSell"
  66. autoSell.Parent = mainFrame
  67. autoSell.BackgroundColor3 = Color3.new(0.862745, 0, 0)
  68. autoSell.BackgroundTransparency = 0.40000000596046
  69. autoSell.BorderSizePixel = 0
  70. autoSell.Position = UDim2.new(0, 0, 0.469999999, 0)
  71. autoSell.Size = UDim2.new(0.449999988, 0, 0.200000003, 0)
  72. autoSell.Font = Enum.Font.SourceSans
  73. autoSell.Text = "AUTO SELL: OFF"
  74. autoSell.TextColor3 = Color3.new(1, 1, 1)
  75. autoSell.TextScaled = true
  76. autoSell.TextSize = 14
  77. autoSell.TextWrapped = true
  78.  
  79. credits.Name = "credits"
  80. credits.Parent = mainFrame
  81. credits.BackgroundColor3 = Color3.new(1, 1, 1)
  82. credits.BackgroundTransparency = 1
  83. credits.BorderSizePixel = 0
  84. credits.Position = UDim2.new(0.479999989, 0, 0.5, 0)
  85. credits.Size = UDim2.new(0.5, 0, 0.200000003, 0)
  86. credits.Font = Enum.Font.SourceSansLight
  87. credits.Text = "Gui Recreated By IxLUCASSxI Yt LucasGaming"
  88. credits.TextColor3 = Color3.new(1, 1, 1)
  89. credits.TextScaled = true
  90. credits.TextSize = 14
  91. credits.TextWrapped = true
  92.  
  93. topBar.Name = "topBar"
  94. topBar.Parent = newGui
  95. topBar.Active = true
  96. topBar.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  97. topBar.BorderSizePixel = 0
  98. topBar.Draggable = true
  99. topBar.Position = UDim2.new(0.212732911, 0, 0.41292876, 0)
  100. topBar.Size = UDim2.new(0, 250, 0, 34)
  101. topBar.Draggable = true
  102.  
  103. name.Name = "name"
  104. name.Parent = topBar
  105. name.BackgroundColor3 = Color3.new(1, 1, 1)
  106. name.BackgroundTransparency = 1
  107. name.Size = UDim2.new(1, 0, 1, 0)
  108. name.Font = Enum.Font.SourceSansLight
  109. name.Text = "Magnet Simulator"
  110. name.TextColor3 = Color3.new(1, 1, 1)
  111. name.TextScaled = true
  112. name.TextSize = 14
  113. name.TextWrapped = true
  114.  
  115. --// Scripts
  116. local reqGrab = game:GetService("ReplicatedStorage").Events.MagnetEvents['requestGrab']
  117. local renderStep = game:GetService("RunService").RenderStepped
  118.  
  119.  
  120. local farmToggle = false
  121.  
  122. autoFarm.MouseButton1Click:Connect(function()
  123. if farmToggle == false then
  124. farmToggle = true
  125. autoFarm.Text = "AUTO FARM: ON"
  126. autoFarm.BackgroundColor3 = Color3.fromRGB(0, 220, 0)
  127.  
  128. local tool = "Pink Dual Long Power Magnets"-- change to your Magnet Name
  129.  
  130. while renderStep:wait() do
  131. if farmToggle == false then break end
  132.  
  133. for i = 1, 10 do
  134. reqGrab:FireServer("Candy1", game.ReplicatedStorage.Tools[tool])--Change to Candy1 or 380000000
  135. end
  136. end
  137. elseif farmToggle then
  138. farmToggle = false
  139. autoFarm.Text = "AUTO FARM: OFF"
  140. autoFarm.BackgroundColor3 = Color3.fromRGB(220, 0, 0)
  141. end
  142. end)
  143.  
  144. local sellToggle = false
  145.  
  146. autoSell.MouseButton1Click:Connect(function()
  147. local plr = game.Players.LocalPlayer
  148. local char = plr.Character.HumanoidRootPart
  149.  
  150. if sellToggle == false then
  151. sellToggle = true
  152. autoSell.Text = "AUTO SELL: ON"
  153. autoSell.BackgroundColor3 = Color3.fromRGB(0, 220, 0)
  154.  
  155. while renderStep:wait() do
  156. if sellToggle == false then break end
  157. for i = 1, 10 do
  158. workspace.Rings.Sellx2.CanCollide = false
  159. workspace.Rings.Sellx2.Transparency = 1
  160. workspace.Rings.Sellx2.CFrame = char.CFrame --+ Vector3.new(0, math.random(-1, 1), 0)
  161. end
  162. end
  163. wait(0.1)
  164. elseif sellToggle == true then
  165. sellToggle = false
  166. autoSell.Text = "AUTO SELL: OFF"
  167. autoSell.BackgroundColor3 = Color3.fromRGB(220, 0, 0)
  168.  
  169. workspace.Rings.Sellx2.CanCollide = true
  170. workspace.Rings.Sellx2.Transparency = 0
  171. workspace.Rings.Sellx2.CFrame = CFrame.new(-423.296997, 1.41699982, -849.867981, 0.766061246, -0, -0.642767608, 0, 1, -0, 0.642767608, 0, 0.766061246)
  172. end
  173. end)
  174.  
  175. local rebirthToggle = false
  176.  
  177. autoRebirth.MouseButton1Click:Connect(function()
  178. if rebirthToggle == false then
  179. rebirthToggle = true
  180. autoRebirth.Text = "AUTO REBIRTH: ON"
  181. autoRebirth.BackgroundColor3 = Color3.fromRGB(0, 220, 0)
  182.  
  183. while renderStep:wait() do
  184. if rebirthToggle == false then break end
  185. for i = 1, 10 do
  186. wait(10)
  187. game.ReplicatedStorage.RebirthEvents.requestRebirth:FireServer(100000)
  188. end
  189. end
  190. elseif rebirthToggle == true then
  191. rebirthToggle = false
  192. autoRebirth.Text = "AUTO REBIRTH: OFF"
  193. autoRebirth.BackgroundColor3 = Color3.fromRGB(220, 0, 0)
  194. end
  195. end)
  196.  
  197. close.MouseButton1Click:Connect(function()
  198. newGui:Destroy()
  199. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement