Advertisement
yWolf_BR

Magnet Simulator US

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