Advertisement
nhathuypopo

Magnet simulator 2

Jan 14th, 2019
1,473
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 12.88 KB | None | 0 0
  1. _G.Magnet = "" -- type the name of the magnet you want to autoequip or autobuy
  2. _G.Backpack = "" -- type the name of the backpack you want to autoequip or autobuy
  3. _G.Pet = "Shiny Bat Bear" -- type the name of the pet you want to autoequip
  4.  
  5. --[[ Examples:
  6. Pets ~ "Bear" "Panda" "Koala" "Spirit Bear"
  7. Magnets ~ "Silver Magnet" "Majestic Magnet" "Adurite Magnet"
  8. Backpacks ~ "Diamond Magnet Pack" "Advanced Backpack" "Adurite Backpack"
  9. --]]
  10.  
  11. BuyBackpack = true --set this true if you want to buy the magnet
  12. BuyMagnet = false --set this to true if you want to buy the magnet
  13.  
  14. -----
  15.  
  16.  
  17.  
  18.  
  19.  
  20. print('loading')
  21. plr = game:GetService('Players').LocalPlayer
  22. Root = plr.Character.HumanoidRootPart
  23. local ScreenGui = Instance.new("ScreenGui")
  24. local MainFrame = Instance.new("Frame")
  25. local TopFrame = Instance.new("Frame")
  26. local Close = Instance.new("TextButton")
  27. local Minimize = Instance.new("TextButton")
  28. local Game = Instance.new("TextLabel")
  29. local B1 = Instance.new("TextButton")
  30. local L1 = Instance.new("TextLabel")
  31. local B5 = Instance.new("TextButton")
  32. local L5 = Instance.new("TextLabel")
  33. local B3 = Instance.new("TextButton")
  34. local L3 = Instance.new("TextLabel")
  35. local B6 = Instance.new("TextButton")
  36. local L6 = Instance.new("TextLabel")
  37. local B2 = Instance.new("TextButton")
  38. local L2 = Instance.new("TextLabel")
  39. local B4 = Instance.new("TextButton")
  40. local L4 = Instance.new("TextLabel")
  41. local GuiCred = Instance.new("TextLabel")
  42. local ScriptCred = Instance.new("TextLabel")
  43. ScreenGui.Parent = game.CoreGui
  44. B1.TextWrapped = true
  45. B2.TextWrapped = true
  46. B3.TextWrapped = true
  47. B4.TextWrapped = true
  48. B5.TextWrapped = true
  49. B6.TextWrapped = true
  50. ScriptCred.TextWrapped = true
  51. GuiCred.TextWrapped = true
  52. Game.TextWrapped = true
  53. _G.on1 = 0
  54. _G.on2 = 0
  55. _G.on3 = 0
  56. _G.on4 = 0
  57. _G.on5 = 0
  58. _G.on6 = 0
  59. MainFrame.Name = "MainFrame"
  60. MainFrame.Parent = ScreenGui
  61. MainFrame.BackgroundColor3 = Color3.new(0.364706, 0.360784, 0.380392)
  62. MainFrame.BackgroundTransparency = 0.40000000596046
  63. MainFrame.BorderColor3 = Color3.new(0.501961, 0.533333, 0.529412)
  64. MainFrame.Position = UDim2.new(0.229385316, 0, 0.28605482, 0)
  65. MainFrame.Size = UDim2.new(0, 360, 0, 239)
  66. MainFrame.Draggable = true
  67. MainFrame.Active = true
  68. MainFrame.Selectable = true
  69. TopFrame.Name = "TopFrame"
  70. TopFrame.Parent = MainFrame
  71. TopFrame.BackgroundColor3 = Color3.new(0.364706, 0.360784, 0.380392)
  72. TopFrame.BackgroundTransparency = 0.89999997615814
  73. TopFrame.BorderSizePixel = 0
  74. TopFrame.Size = UDim2.new(0, 360, 0, 24)
  75. Close.Name = "Close"
  76. Close.Parent = TopFrame
  77. Close.BackgroundColor3 = Color3.new(0.364706, 0.360784, 0.380392)
  78. Close.BackgroundTransparency = 0.80000001192093
  79. Close.BorderSizePixel = 0
  80. Close.Position = UDim2.new(0.916666627, 0, 0, 0)
  81. Close.Size = UDim2.new(0, 24, 0, 24)
  82. Close.Font = Enum.Font.SourceSans
  83. Close.Text = "x"
  84. Close.TextColor3 = Color3.new(0, 0, 0)
  85. Close.TextSize = 16
  86. Minimize.Name = "Minimize"
  87. Minimize.Parent = TopFrame
  88. Minimize.BackgroundColor3 = Color3.new(0.364706, 0.360784, 0.380392)
  89. Minimize.BackgroundTransparency = 0.80000001192093
  90. Minimize.BorderSizePixel = 0
  91. Minimize.Position = UDim2.new(0.827777803, 0, 0, 0)
  92. Minimize.Size = UDim2.new(0, 24, 0, 24)
  93. Minimize.Font = Enum.Font.SourceSans
  94. Minimize.Text = "^"
  95. Minimize.TextColor3 = Color3.new(0, 0, 0)
  96. Minimize.TextSize = 18
  97. Game.Name = "Game"
  98. Game.Parent = TopFrame
  99. Game.BackgroundColor3 = Color3.new(0.364706, 0.360784, 0.380392)
  100. Game.BackgroundTransparency = 0.80000001192093
  101. Game.BorderSizePixel = 0
  102. Game.Position = UDim2.new(0.0222222228, 0, 0, 0)
  103. Game.Size = UDim2.new(0, 281, 0, 24)
  104. Game.Font = Enum.Font.SourceSans
  105. Game.Text = "[Game name here]"
  106. Game.TextColor3 = Color3.new(0, 0, 0)
  107. Game.TextSize = 14
  108. B1.Name = "B1"
  109. B1.Parent = MainFrame
  110. B1.BackgroundColor3 = Color3.new(0.333333, 0.478431, 0.584314)
  111. B1.BackgroundTransparency = 0.20000000298023
  112. B1.Position = UDim2.new(0.0583333373, 0, 0.146443501, 0)
  113. B1.Size = UDim2.new(0, 132, 0, 44)
  114. B1.Font = Enum.Font.SourceSans
  115. B1.Text = "B1 N/A"
  116. B1.TextColor3 = Color3.new(0, 0, 0)
  117. B1.TextSize = 14
  118. L1.Name = "L1"
  119. L1.Parent = B1
  120. L1.BackgroundColor3 = Color3.new(0.313726, 0.360784, 0.403922)
  121. L1.Position = UDim2.new(0.871212125, 0, 0, 0)
  122. L1.Size = UDim2.new(0, 17, 0, 17)
  123. L1.Font = Enum.Font.SourceSans
  124. L1.Text = ""
  125. L1.TextColor3 = Color3.new(0, 0, 0)
  126. L1.TextSize = 14
  127. B2.Name = "B2"
  128. B2.Parent = MainFrame
  129. B2.BackgroundColor3 = Color3.new(0.333333, 0.478431, 0.584314)
  130. B2.BackgroundTransparency = 0.20000000298023
  131. B2.Position = UDim2.new(0.0583333373, 0, 0.405857742, 0)
  132. B2.Size = UDim2.new(0, 132, 0, 44)
  133. B2.Font = Enum.Font.SourceSans
  134. B2.Text = "B2 N/A"
  135. B2.TextColor3 = Color3.new(0, 0, 0)
  136. B2.TextSize = 14
  137. L2.Name = "L2"
  138. L2.Parent = B2
  139. L2.BackgroundColor3 = Color3.new(0.313726, 0.360784, 0.403922)
  140. L2.Position = UDim2.new(0.871212125, 0, 0, 0)
  141. L2.Size = UDim2.new(0, 17, 0, 17)
  142. L2.Font = Enum.Font.SourceSans
  143. L2.Text = ""
  144. L2.TextColor3 = Color3.new(0, 0, 0)
  145. L2.TextSize = 14
  146. B3.Name = "B3"
  147. B3.Parent = MainFrame
  148. B3.BackgroundColor3 = Color3.new(0.333333, 0.478431, 0.584314)
  149. B3.BackgroundTransparency = 0.20000000298023
  150. B3.Position = UDim2.new(0.0583333373, 0, 0.656903744, 0)
  151. B3.Size = UDim2.new(0, 132, 0, 44)
  152. B3.Font = Enum.Font.SourceSans
  153. B3.Text = "B3 N/A"
  154. B3.TextColor3 = Color3.new(0, 0, 0)
  155. B3.TextSize = 14
  156. L3.Name = "L3"
  157. L3.Parent = B3
  158. L3.BackgroundColor3 = Color3.new(0.313726, 0.360784, 0.403922)
  159. L3.Position = UDim2.new(0.871212125, 0, 0, 0)
  160. L3.Size = UDim2.new(0, 17, 0, 17)
  161. L3.Font = Enum.Font.SourceSans
  162. L3.Text = ""
  163. L3.TextColor3 = Color3.new(0, 0, 0)
  164. L3.TextSize = 14
  165. B4.Name = "B4"
  166. B4.Parent = MainFrame
  167. B4.BackgroundColor3 = Color3.new(0.333333, 0.478431, 0.584314)
  168. B4.BackgroundTransparency = 0.20000000298023
  169. B4.Position = UDim2.new(0.577777743, 0, 0.146443516, 0)
  170. B4.Size = UDim2.new(0, 132, 0, 44)
  171. B4.Font = Enum.Font.SourceSans
  172. B4.Text = "B4 N/A"
  173. B4.TextColor3 = Color3.new(0, 0, 0)
  174. B4.TextSize = 14
  175. L4.Name = "L4"
  176. L4.Parent = B4
  177. L4.BackgroundColor3 = Color3.new(0.313726, 0.360784, 0.403922)
  178. L4.Position = UDim2.new(0.871212125, 0, 0, 0)
  179. L4.Size = UDim2.new(0, 17, 0, 17)
  180. L4.Font = Enum.Font.SourceSans
  181. L4.Text = ""
  182. L4.TextColor3 = Color3.new(0, 0, 0)
  183. L4.TextSize = 14
  184. B5.Name = "B5"
  185. B5.Parent = MainFrame
  186. B5.BackgroundColor3 = Color3.new(0.333333, 0.478431, 0.584314)
  187. B5.BackgroundTransparency = 0.20000000298023
  188. B5.Position = UDim2.new(0.577777743, 0, 0.405857742, 0)
  189. B5.Size = UDim2.new(0, 132, 0, 44)
  190. B5.Font = Enum.Font.SourceSans
  191. B5.Text = "B5 N/A"
  192. B5.TextColor3 = Color3.new(0, 0, 0)
  193. B5.TextSize = 14
  194. L5.Name = "L5"
  195. L5.Parent = B5
  196. L5.BackgroundColor3 = Color3.new(0.313726, 0.360784, 0.403922)
  197. L5.Position = UDim2.new(0.871212125, 0, 0, 0)
  198. L5.Size = UDim2.new(0, 17, 0, 17)
  199. L5.Font = Enum.Font.SourceSans
  200. L5.Text = ""
  201. L5.TextColor3 = Color3.new(0, 0, 0)
  202. L5.TextSize = 14
  203. B6.Name = "B6"
  204. B6.Parent = MainFrame
  205. B6.BackgroundColor3 = Color3.new(0.333333, 0.478431, 0.584314)
  206. B6.BackgroundTransparency = 0.20000000298023
  207. B6.Position = UDim2.new(0.577777743, 0, 0.656903803, 0)
  208. B6.Size = UDim2.new(0, 132, 0, 44)
  209. B6.Font = Enum.Font.SourceSans
  210. B6.Text = "B6 N/A"
  211. B6.TextColor3 = Color3.new(0, 0, 0)
  212. B6.TextSize = 14
  213. L6.Name = "L6"
  214. L6.Parent = B6
  215. L6.BackgroundColor3 = Color3.new(0.313726, 0.360784, 0.403922)
  216. L6.Position = UDim2.new(0.871212125, 0, 0, 0)
  217. L6.Size = UDim2.new(0, 17, 0, 17)
  218. L6.Font = Enum.Font.SourceSans
  219. L6.Text = ""
  220. L6.TextColor3 = Color3.new(0, 0, 0)
  221. L6.TextSize = 14
  222. GuiCred.Name = "GuiCred"
  223. GuiCred.Parent = MainFrame
  224. GuiCred.BackgroundColor3 = Color3.new(0.45098, 0.584314, 0.682353)
  225. GuiCred.BackgroundTransparency = 0.60000002384186
  226. GuiCred.BorderSizePixel = 0
  227. GuiCred.Position = UDim2.new(0, 0, 0.88702929, 0)
  228. GuiCred.Size = UDim2.new(0, 174, 0, 27)
  229. GuiCred.Font = Enum.Font.SourceSans
  230. GuiCred.Text = "Gui Credit: brianops1"
  231. GuiCred.TextColor3 = Color3.new(0, 0, 0)
  232. GuiCred.TextSize = 14
  233. ScriptCred.Name = "ScriptCred"
  234. ScriptCred.Parent = MainFrame
  235. ScriptCred.BackgroundColor3 = Color3.new(0.45098, 0.584314, 0.682353)
  236. ScriptCred.BackgroundTransparency = 0.60000002384186
  237. ScriptCred.BorderSizePixel = 0
  238. ScriptCred.Position = UDim2.new(0.522222221, 0, 0.887000024, 0)
  239. ScriptCred.Size = UDim2.new(0, 172, 0, 27)
  240. ScriptCred.Font = Enum.Font.SourceSans
  241. ScriptCred.Text = "Script(s) credit: "
  242. ScriptCred.TextColor3 = Color3.new(0, 0, 0)
  243. ScriptCred.TextSize = 14
  244. function onL(Light)
  245. Light.BackgroundColor3 = Color3.new(0.364706, 0.694118, 1)
  246. end
  247. function offL(Light)
  248. Light.BackgroundColor3 = Color3.new(0.313726, 0.360784, 0.403922)
  249. end
  250. ------------------------------------------------------
  251.  
  252. Game.Text = "Magnet Sim" -- Game name here
  253. ScriptCred.Text = ScriptCred.Text .. "brianops1" -- put the script creators name here
  254.  
  255. --Enter the script name corresponding to the button below
  256. B1.Text = "AutoMoney"
  257. B2.Text = "AutoSell"
  258. B3.Text = "AutoRebirth"
  259. B4.Text = "AutoEquip (Top of code)"
  260. B5.Text = "AutoBuy (Top of code)"
  261. B6.Text = "AutoMoney+"
  262.  
  263. B1.MouseButton1Click:connect(function()
  264. if _G.on1 == 1 then
  265. _G.on1 = 0
  266. offL(L1)
  267. else
  268. _G.on1 = 1
  269. onL(L1)
  270. while _G.on1 == 1 do
  271. game:GetService('RunService').Stepped:wait()
  272. for i = 1,10 do
  273. local tool = game.Workspace[plr.Name]:FindFirstChildOfClass("Tool")
  274. if tool then
  275. local A_1 = "1250"
  276. local A_2 = tool
  277. local Event = game:GetService("ReplicatedStorage").Events.MagnetEvents.requestGrab
  278. Event:FireServer(A_1, A_2)
  279. else
  280. local tool = plr.Backpack:FindFirstChildOfClass("Tool")
  281. if tool then
  282. local A_1 = "1250"
  283. local A_2 = tool
  284. local Event = game:GetService("ReplicatedStorage").Events.MagnetEvents.requestGrab
  285. Event:FireServer(A_1, A_2)
  286. end
  287. end
  288. end
  289. end
  290. end
  291. end)
  292. B2.MouseButton1Click:connect(function()
  293. if _G.on2 == 1 then
  294. _G.on2 = 0
  295. offL(L2)
  296. else
  297. _G.on2 = 1
  298. onL(L2)
  299. plr = game:GetService('Players').LocalPlayer
  300. Root = plr.Character.HumanoidRootPart
  301. orgin = Root.CFrame
  302. while _G.on2 == 1 do
  303. game:GetService('RunService').Stepped:wait()
  304. Root.CFrame = CFrame.new(136.73712158203, 13.362461090088, -52.908908843994)
  305. wait()
  306. Root.CFrame = CFrame.new(136.83712158203, 13.362461090088, -52.908908843994)
  307. wait()
  308. end
  309. Root.CFrame = orgin
  310. end
  311. end)
  312. B3.MouseButton1Click:connect(function()
  313. if _G.on3 == 1 then
  314. _G.on3 = 0
  315. offL(L3)
  316. else
  317. _G.on3 = 1
  318. onL(L3)
  319. while _G.on3 == 1 do
  320. wait()
  321. local Event = game:GetService("ReplicatedStorage").RebirthEvents.requestRebirth
  322. Event:FireServer()
  323. end
  324. end
  325. end)
  326. B4.MouseButton1Click:connect(function()
  327. if _G.on4 == 1 then
  328. _G.on4 = 0
  329. offL(L4)
  330. else
  331. _G.on4 = 1
  332. onL(L4)
  333. while _G.on4 == 1 do
  334. wait()
  335. for a = 1,5 do
  336. local A_1 = _G.Pet
  337. local A_2 = "equip"
  338. local Event = game:GetService("ReplicatedStorage").PetEvents.request
  339. Event:FireServer(A_1, A_2)
  340. end
  341. wait(1)
  342. local A_1 = _G.Backpack
  343. local A_2 = "Equip"
  344. local Event = game:GetService("ReplicatedStorage").Events.ShopEvents.requestEquip
  345. Event:FireServer(A_1, A_2)
  346. local A_1 = _G.Magnet
  347. local A_2 = "Equip"
  348. local Event = game:GetService("ReplicatedStorage").Events.ShopEvents.requestEquip
  349. Event:FireServer(A_1, A_2)
  350. end
  351. end
  352. end)
  353. B5.MouseButton1Click:connect(function()
  354. if _G.on5 == 1 then
  355. _G.on5 = 0
  356. offL(L5)
  357. else
  358. _G.on5 = 1
  359. onL(L5)
  360. if _G.on5 == 1 then
  361. wait()
  362. if BuyBackpack == true then
  363. local A_1 = _G.Backpack
  364. local A_2 = "Backpack"
  365. local Event = game:GetService("ReplicatedStorage").Events.ShopEvents.requestBuy
  366. Event:FireServer(A_1, A_2)
  367. end
  368. if BuyMagnet == true then
  369. local A_1 = _G.Magnet
  370. local A_2 = "Magnet"
  371. local Event = game:GetService("ReplicatedStorage").Events.ShopEvents.requestBuy
  372. Event:FireServer(A_1, A_2)
  373. end
  374. _G.on5 = 0
  375. offL(L5)
  376. end
  377. end
  378. end)
  379. B6.MouseButton1Click:connect(function()
  380. if _G.on6 == 1 then
  381. _G.on6 = 0
  382. offL(L6)
  383. else
  384. _G.on6 = 1
  385. onL(L6)
  386. while _G.on6 == 1 do
  387. game:GetService('RunService').Stepped:wait()
  388. for i = 1,25 do
  389. local tool = game.Workspace[plr.Name]:FindFirstChildOfClass("Tool")
  390. if tool then
  391. local A_1 = "1250"
  392. local A_2 = tool
  393. local Event = game:GetService("ReplicatedStorage").Events.MagnetEvents.requestGrab
  394. Event:FireServer(A_1, A_2)
  395. else
  396. local tool = plr.Backpack:FindFirstChildOfClass("Tool")
  397. if tool then
  398. local A_1 = "1250"
  399. local A_2 = tool
  400. local Event = game:GetService("ReplicatedStorage").Events.MagnetEvents.requestGrab
  401. Event:FireServer(A_1, A_2)
  402. end
  403. end
  404. end
  405. end
  406. end
  407. end)
  408.  
  409. ------------------------------------------------------
  410.  
  411. m = 0
  412. Close.MouseButton1Click:connect(function()
  413. _G.on1 = 0
  414. _G.on2 = 0
  415. _G.on3 = 0
  416. _G.on4 = 0
  417. _G.on5 = 0
  418. _G.on6 = 0
  419. MainFrame:Destroy()
  420. ScreenGui:Destroy()
  421. end)
  422. Minimize.MouseButton1Click:connect(function()
  423. if m == 0 then
  424. m = 1
  425. B1.Visible = false
  426. B2.Visible = false
  427. B3.Visible = false
  428. B4.Visible = false
  429. B5.Visible = false
  430. B6.Visible = false
  431. GuiCred.Visible = false
  432. ScriptCred.Visible = false
  433. MainFrame.Size = TopFrame.Size
  434. Minimize.TextSize = 18
  435. Minimize.Text = "v"
  436. else
  437. m = 0
  438. MainFrame.Size = UDim2.new(0, 360, 0, 239)
  439. B1.Visible = true
  440. B2.Visible = true
  441. B3.Visible = true
  442. B4.Visible = true
  443. B5.Visible = true
  444. B6.Visible = true
  445. GuiCred.Visible = true
  446. ScriptCred.Visible = true
  447. Minimize.TextSize = 20
  448. Minimize.Text = "^"
  449. end
  450. end)
  451. print('loaded')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement