VanThangzxc

Magnet Simulator

Jan 8th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.95 KB | None | 0 0
  1. local h = Instance.new("Hint",workspace)
  2. h.Text = "Loading Gui"
  3. plr = game:GetService('Players').LocalPlayer
  4. Root = plr.Character.HumanoidRootPart
  5. local MagnetSim = Instance.new("ScreenGui")
  6. local MainMagnetSim = Instance.new("Frame")
  7. local TextLabel = Instance.new("TextLabel")
  8. local AutoSell = Instance.new("TextButton")
  9. local AutoRebirth = Instance.new("TextButton")
  10. local AutoEquip = Instance.new("TextButton")
  11. local AutoSelloff = Instance.new("TextButton")
  12. local AutoRebirthoff = Instance.new("TextButton")
  13. local AutoEquipoff = Instance.new("TextButton")
  14. local Magnet = Instance.new("TextBox")
  15. local Pet = Instance.new("TextBox")
  16. local Backpack = Instance.new("TextBox")
  17. local AutoCollect = Instance.new("TextButton")
  18. local AutoCollectoff = Instance.new("TextButton")
  19. local Close = Instance.new("TextButton")
  20. local green = Color3.new(0,255,0)
  21. local red = Color3.new(255,0,0)
  22.  
  23. MagnetSim.Name = "MagnetSim"
  24. MagnetSim.Parent = game.CoreGui
  25.  
  26. MainMagnetSim.Name = "MainMagnetSim"
  27. MainMagnetSim.Parent = MagnetSim
  28. MainMagnetSim.BackgroundColor3 = Color3.new(0, 0, 0)
  29. MainMagnetSim.BackgroundTransparency = 0.5
  30. MainMagnetSim.Position = UDim2.new(0.173966691, 0, 0.275184304, 0)
  31. MainMagnetSim.Size = UDim2.new(0, 450, 0, 249)
  32. MainMagnetSim.Selectable = true
  33. MainMagnetSim.Draggable = true
  34. MainMagnetSim.Active = true
  35. MainMagnetSim.Visible = false
  36.  
  37. TextLabel.Parent = MainMagnetSim
  38. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  39. TextLabel.BackgroundTransparency = 1
  40. TextLabel.Size = UDim2.new(0, 450, 0, 20)
  41. TextLabel.Font = Enum.Font.SourceSans
  42. TextLabel.Text = "Magnet Simulator "
  43. TextLabel.TextColor3 = Color3.new(1, 0, 0)
  44. TextLabel.TextScaled = true
  45. TextLabel.TextSize = 14
  46. TextLabel.TextWrapped = true
  47.  
  48. AutoSell.Name = "AutoSell"
  49. AutoSell.Parent = MainMagnetSim
  50. AutoSell.BackgroundColor3 = Color3.new(1, 1, 0.498039)
  51. AutoSell.Position = UDim2.new(0.0644444451, 0, 0.47389555, 0)
  52. AutoSell.Size = UDim2.new(0, 115, 0, 41)
  53. AutoSell.Font = Enum.Font.SourceSans
  54. AutoSell.Text = "Auto Sell"
  55. AutoSell.TextColor3 = Color3.new(0, 0, 0)
  56. AutoSell.TextSize = 14
  57.  
  58. AutoRebirth.Name = "Auto Rebirth"
  59. AutoRebirth.Parent = MainMagnetSim
  60. AutoRebirth.BackgroundColor3 = Color3.new(1, 1, 0.498039)
  61. AutoRebirth.Position = UDim2.new(0.0644444451, 0, 0.751003981, 0)
  62. AutoRebirth.Size = UDim2.new(0, 115, 0, 41)
  63. AutoRebirth.Font = Enum.Font.SourceSans
  64. AutoRebirth.Text = "Auto Rebirth"
  65. AutoRebirth.TextColor3 = Color3.new(0, 0, 0)
  66. AutoRebirth.TextSize = 14
  67.  
  68. AutoEquip.Name = "AutoEquip"
  69. AutoEquip.Parent = MainMagnetSim
  70. AutoEquip.BackgroundColor3 = Color3.new(1, 1, 0.498039)
  71. AutoEquip.Position = UDim2.new(0.460000008, 0, 0.184738949, 0)
  72. AutoEquip.Size = UDim2.new(0, 215, 0, 41)
  73. AutoEquip.Font = Enum.Font.SourceSans
  74. AutoEquip.Text = "Auto Equip Pet, Magnet, Backpack"
  75. AutoEquip.TextColor3 = Color3.new(0, 0, 0)
  76. AutoEquip.TextSize = 14
  77.  
  78. AutoSelloff.Name = "AutoSell"
  79. AutoSelloff.Parent = MainMagnetSim
  80. AutoSelloff.BackgroundColor3 = green
  81. AutoSelloff.Position = UDim2.new(0.0644444451, 0, 0.47389555, 0)
  82. AutoSelloff.Size = UDim2.new(0, 115, 0, 41)
  83. AutoSelloff.Font = Enum.Font.SourceSans
  84. AutoSelloff.Text = "Auto Sell"
  85. AutoSelloff.TextColor3 = Color3.new(0, 0, 0)
  86. AutoSelloff.TextSize = 14
  87. AutoSelloff.Visible = false
  88.  
  89. AutoRebirthoff.Name = "Auto Rebirth"
  90. AutoRebirthoff.Parent = MainMagnetSim
  91. AutoRebirthoff.BackgroundColor3 = green
  92. AutoRebirthoff.Position = UDim2.new(0.0644444451, 0, 0.751003981, 0)
  93. AutoRebirthoff.Size = UDim2.new(0, 115, 0, 41)
  94. AutoRebirthoff.Font = Enum.Font.SourceSans
  95. AutoRebirthoff.Text = "Auto Rebirth"
  96. AutoRebirthoff.TextColor3 = Color3.new(0, 0, 0)
  97. AutoRebirthoff.TextSize = 14
  98. AutoRebirthoff.Visible = false
  99.  
  100. AutoEquipoff.Name = "AutoEquip"
  101. AutoEquipoff.Parent = MainMagnetSim
  102. AutoEquipoff.BackgroundColor3 = green
  103. AutoEquipoff.Position = UDim2.new(0.460000008, 0, 0.184738949, 0)
  104. AutoEquipoff.Size = UDim2.new(0, 215, 0, 41)
  105. AutoEquipoff.Font = Enum.Font.SourceSans
  106. AutoEquipoff.Text = "Auto Equip Pet, Magnet, Backpack"
  107. AutoEquipoff.TextColor3 = Color3.new(0, 0, 0)
  108. AutoEquipoff.TextSize = 14
  109. AutoEquipoff.Visible = false
  110.  
  111. Magnet.Name = "Magnet"
  112. Magnet.Parent = MainMagnetSim
  113. Magnet.BackgroundColor3 = Color3.new(1, 1, 0.498039)
  114. Magnet.Position = UDim2.new(0.431111097, 0, 0.47389558, 0)
  115. Magnet.Size = UDim2.new(0, 111, 0, 41)
  116. Magnet.Font = Enum.Font.SourceSans
  117. Magnet.Text = "Name Magnet Here"
  118. Magnet.TextColor3 = Color3.new(0, 0, 0)
  119. Magnet.TextSize = 14
  120. Magnet.TextScaled = true
  121.  
  122. Pet.Name = "Pet"
  123. Pet.Parent = MainMagnetSim
  124. Pet.BackgroundColor3 = Color3.new(1, 1, 0.498039)
  125. Pet.Position = UDim2.new(0.724444449, 0, 0.47389558, 0)
  126. Pet.Size = UDim2.new(0, 106, 0, 41)
  127. Pet.Font = Enum.Font.SourceSans
  128. Pet.Text = "Name Pet Here"
  129. Pet.TextColor3 = Color3.new(0, 0, 0)
  130. Pet.TextSize = 14
  131. Pet.TextScaled = true
  132.  
  133. Backpack.Name = "Backpack"
  134. Backpack.Parent = MainMagnetSim
  135. Backpack.BackgroundColor3 = Color3.new(1, 1, 0.498039)
  136. Backpack.Position = UDim2.new(0.537777781, 0, 0.710843384, 0)
  137. Backpack.Size = UDim2.new(0, 136, 0, 41)
  138. Backpack.Font = Enum.Font.SourceSans
  139. Backpack.Text = "Name Backpack Here"
  140. Backpack.TextColor3 = Color3.new(0, 0, 0)
  141. Backpack.TextSize = 14
  142. Backpack.TextScaled = true
  143.  
  144. AutoCollect.Name = "AutoCollect"
  145. AutoCollect.Parent = MainMagnetSim
  146. AutoCollect.BackgroundColor3 = Color3.new(1, 1, 0.498039)
  147. AutoCollect.Position = UDim2.new(0.0644444451, 0, 0.184738949, 0)
  148. AutoCollect.Size = UDim2.new(0, 115, 0, 41)
  149. AutoCollect.Font = Enum.Font.SourceSans
  150. AutoCollect.Text = "Auto Collect Coin"
  151. AutoCollect.TextColor3 = Color3.new(0, 0, 0)
  152. AutoCollect.TextSize = 14
  153.  
  154. AutoCollectoff.Name = "AutoCollect"
  155. AutoCollectoff.Parent = MainMagnetSim
  156. AutoCollectoff.BackgroundColor3 = green
  157. AutoCollectoff.Position = UDim2.new(0.0644444451, 0, 0.184738949, 0)
  158. AutoCollectoff.Size = UDim2.new(0, 115, 0, 41)
  159. AutoCollectoff.Font = Enum.Font.SourceSans
  160. AutoCollectoff.Text = "Auto Collect Coin"
  161. AutoCollectoff.TextColor3 = Color3.new(0, 0, 0)
  162. AutoCollectoff.TextSize = 14
  163. AutoCollectoff.Visible =false
  164.  
  165. Close.Name = "Close"
  166. Close.Parent = MainMagnetSim
  167. Close.BackgroundColor3 = Color3.new(1, 1, 1)
  168. Close.BackgroundTransparency = 1
  169. Close.Position = UDim2.new(0.955555499, 0, 0, 0)
  170. Close.Size = UDim2.new(0, 20, 0, 20)
  171. Close.Font = Enum.Font.SourceSans
  172. Close.Text = "X"
  173. Close.TextColor3 = Color3.new(1, 0, 0)
  174. Close.TextScaled = true
  175. Close.TextSize = 14
  176. Close.TextWrapped = true
  177.  
  178. AutoEquip.MouseButton1Down:connect(function()
  179. AutoEquipoff.Visible =true
  180. AutoEquip.Visible = false
  181. _G.Equip = true
  182. while _G.Equip do
  183. for a = 1,5 do
  184. local A_1 = Pet.Text
  185. local A_2 = "equip"
  186. local Event = game:GetService("ReplicatedStorage").PetEvents.request
  187. Event:FireServer(A_1, A_2)
  188. end
  189. wait(1)
  190. local A_1 = Backpack.Text
  191. local A_2 = "Equip"
  192. local Event = game:GetService("ReplicatedStorage").Events.ShopEvents.requestEquip
  193. Event:FireServer(A_1, A_2)
  194. local A_1 = Magnet.Text
  195. local A_2 = "Equip"
  196. local Event = game:GetService("ReplicatedStorage").Events.ShopEvents.requestEquip
  197. Event:FireServer(A_1, A_2)
  198. end
  199. end)
  200.  
  201. AutoSell.MouseButton1Down:connect(function()
  202. AutoSell.Visible = false
  203. AutoSelloff.Visible = true
  204. _G.Sell = true
  205. while _G.Sell do
  206. wait()
  207. local plr = game.Players.LocalPlayer
  208. local char = plr.Character.HumanoidRootPart
  209. game.Workspace.Rings.Sell.CanCollide = false
  210. game.Workspace.Rings.Sell.CFrame = char.CFrame + Vector3.new(0,math.random(-1,1),0)
  211. end
  212. end)
  213.  
  214. AutoCollect.MouseButton1Down:connect(function()
  215. AutoCollectoff.Visible = true
  216. AutoCollect.Visible = false
  217. _G.Collect = true
  218. while _G.Collect do
  219. game:GetService('RunService').Stepped:wait()
  220. for i = 1,10 do
  221. local tool = game.Workspace[plr.Name]:FindFirstChildOfClass("Tool")
  222. if tool then
  223. local A_1 = "315000"
  224. local A_2 = tool
  225. local Event = game:GetService("ReplicatedStorage").Events.MagnetEvents.requestGrab
  226. Event:FireServer(A_1, A_2)
  227. else
  228. local tool = plr.Backpack:FindFirstChildOfClass("Tool")
  229. if tool then
  230. local A_1 = "315000"
  231. local A_2 = tool
  232. local Event = game:GetService("ReplicatedStorage").Events.MagnetEvents.requestGrab
  233. Event:FireServer(A_1, A_2)
  234. end
  235. end
  236. end
  237. end
  238. end)
  239.  
  240. AutoRebirth.MouseButton1Down:connect(function()
  241. AutoRebirth.Visible =false
  242. AutoRebirthoff.Visible = true
  243. _G.Rebrith = true
  244. while _G.Rebrith do
  245. wait()
  246. local Event = game:GetService("ReplicatedStorage").RebirthEvents.requestRebirth
  247. Event:FireServer()
  248. end
  249. end)
  250.  
  251. AutoEquipoff.MouseButton1Down:connect(function()
  252. _G.Equipt = false
  253. AutoEquip.Visible = true
  254. AutoEquipoff.Visible = false
  255. end)
  256.  
  257. AutoCollectoff.MouseButton1Down:connect(function()
  258. _G.Collect = false
  259. AutoCollect.Visible = true
  260. AutoCollectoff.Visible = false
  261. end)
  262.  
  263. AutoSelloff.MouseButton1Down:connect(function()
  264. _G.Sell = false
  265. AutoSell.Visible = true
  266. AutoSelloff.Visible = false
  267. end)
  268.  
  269. AutoRebirthoff.MouseButton1Down:connect(function()
  270. _G.Rebrith = false
  271. AutoRebirth.Visible = true
  272. AutoRebirthoff.Visible = false
  273. end)
  274.  
  275. Close.MouseButton1Down:connect(function()
  276. MainMagnetSim.Visible = false
  277. end)
  278.  
  279. wait(5)
  280. MainMagnetSim.Visible = true
  281. h.Text = "Loaded"
  282. wait(2)
  283. h:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment