Advertisement
Tryhell

Magnet russ

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