The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Magnet Legends script pastebin roblox
By LINK GAME on 2024-09-21 08:00 am | Syntax: LUA | Views: 17



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. local library = loadstring(game:HttpGet(('https://pastebin.com/raw/FsJak6AT')))()
  2. local w = library:CreateWindow("Magnet Legends")
  3. local b = w:CreateFolder("AutoFarm")
  4. local f = w:CreateFolder("AutoBuy")
  5. local e = w:CreateFolder("Mix")
  6. local u = w:CreateFolder("Credits")
  7. local world = "1"
  8. local Rebirth = "1"
  9.  
  10. b:Toggle("AutoFarm",function(bool)
  11.         shared.toggle = bool
  12.         AutoFarm = bool
  13. end)
  14.  
  15. b:Box("World","number",function(value)
  16.         world = value
  17. end)
  18.  
  19. b:Toggle("AutoRebirth",function(bool)
  20.         shared.toggle = bool
  21.         AutoRebirth = bool
  22. end)
  23.  
  24. b:Box("Rebirth","number",function(value)
  25.         Rebirth = value
  26. end)
  27.  
  28. b:Toggle("Flags",function(bool)
  29.         shared.toggle = bool
  30.         Flags = bool
  31. end)
  32.  
  33. b:Toggle("Quests",function(bool)
  34.         shared.toggle = bool
  35.         Quests = bool
  36. end)
  37.  
  38. f:Toggle("Magnet",function(bool)
  39.         shared.toggle = bool
  40.         Magnet = bool
  41. end)
  42.  
  43. f:Toggle("Backpack",function(bool)
  44.         shared.toggle = bool
  45.         Backpack = bool
  46. end)
  47.  
  48. e:Toggle("AntiAfk",function(bool)
  49.         shared.toggle = bool
  50.         AntiAfk = bool
  51. end)
  52.  
  53. e:Button("Use All Codes",function()
  54.     local stuff = {}
  55.     local workspace = workspace:GetDescendants()
  56.     for i = 1, #workspace do
  57.         local v = workspace[i]
  58.         if v.Name == "CODE" then
  59.             table.insert(stuff,v)
  60.         end
  61.     end
  62.     for i = 1, #stuff do
  63.         local v = stuff[i]
  64.         game:GetService("ReplicatedStorage").network_connections.redeem_code:FireServer(v.SurfaceGui.TextLabel.Text)
  65.     end
  66. end)
  67.  
  68. u:Button("maxgat5#8395",function()
  69.         setclipboard("maxgat5#8395")
  70. end)
  71.  
  72. u:Button("Discrod Server",function()
  73.         setclipboard("https://discord.gg/K4txdRSVfq")
  74. end)
  75.  
  76. while wait() do
  77.     if AutoRebirth == true then
  78.         game:GetService("ReplicatedStorage").network_connections.rebirth:FireServer(Rebirth)
  79.     end
  80.    
  81.         if game:GetService("CoreGui"):FindFirstChild("PurchasePromptApp") then
  82.                 game:GetService("CoreGui").PurchasePromptApp:Destroy()
  83.         end
  84.        
  85.         if Backpack == true then
  86.                 for i,v in pairs(game:GetService("Workspace")["_cache"].BackpackStartCache:GetChildren()) do
  87.                         local ohString1 = "Backpack"
  88.                         local ohNumber2 = v.Name
  89.                         local ohString3 = "BackpackStart"
  90.                         game:GetService("ReplicatedStorage").network_connections.interact_item:FireServer(ohString1, ohNumber2, ohString3)
  91.                 end
  92.         end
  93.        
  94.         if Magnet == true then
  95.                 for i,v in pairs(game:GetService("Workspace")["_cache"].MagnetStartCache:GetChildren()) do
  96.                         local ohString1 = "Magnet"
  97.                         local ohNumber2 = v.Name
  98.                         local ohString3 = "MagnetStart"
  99.                         game:GetService("ReplicatedStorage").network_connections.interact_item:FireServer(ohString1, ohNumber2, ohString3)
  100.                 end
  101.         end
  102.        
  103.         if Flags == true then
  104.                 for i,v in pairs(game:GetService("Workspace").Flags:GetChildren()) do
  105.                         if game.workspace[game.Players.LocalPlayer.Name]:FindFirstChild("HumanoidRootPart") then
  106.                                 if Flags == true then
  107.                                         game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.FlagZone.CFrame.Position + Vector3.new(0,0,0))
  108.                                         wait(6)
  109.                                 end
  110.                         end
  111.                 end
  112.         end
  113.        
  114.         if Quests == true then
  115.                 for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.Main.Quests.Scroll:GetChildren()) do
  116.                         game:GetService("ReplicatedStorage").network_connections.claim_quest_rewards:FireServer(i)
  117.                 end
  118.         end
  119.        
  120.         if AutoFarm == true then
  121.                 for i,v in pairs(game:GetService("Workspace").CoinSpawns:GetChildren()) do
  122.                         if v.Name == world then
  123.                                 for i,v1 in pairs(v:GetChildren()) do
  124.                                         for i,v2 in pairs(game:GetService("Workspace").SellParts:GetChildren()) do
  125.                                                 if v2.Name == world then
  126.                                                         if AutoFarm == true then
  127.                                                                 keypress(0x31)  
  128.                                                                 keyrelease(0x31)
  129.                                                                 if game.workspace[game.Players.LocalPlayer.Name]:FindFirstChild("Humanoid") then
  130.                                                                         if game.Players.LocalPlayer.Backpack:FindFirstChildOfClass("Tool") then
  131.                                                                                 keypress(0x31)  
  132.                                                                                 keyrelease(0x31)
  133.                                                                         end
  134.                                                                 end
  135.                                                                 local tweenInfo = TweenInfo.new(
  136.                                                                 0
  137.                                                                 )      
  138.                                                                 local t = game.TweenService:Create(game.Players.LocalPlayer.Character.PrimaryPart, tweenInfo, {CFrame = CFrame.new(
  139.                                                                 v1.CFrame.Position + Vector3.new(0,0,0)
  140.                                                                 )})
  141.                                                                 game.Players.LocalPlayer.Character.PrimaryPart.Anchored = true
  142.                                                                 t:Play()
  143.                                                                 wait(0)
  144.                                                                 game.Players.LocalPlayer.Character.PrimaryPart.Anchored = false
  145.                                                                 wait()
  146.                                                                 local tweenInfo = TweenInfo.new(
  147.                                                                 0
  148.                                                                 )
  149.                                                                 local t = game.TweenService:Create(game.Players.LocalPlayer.Character.PrimaryPart, tweenInfo, {CFrame = CFrame.new(
  150.                                                                 v2.Sell.CFrame.Position + Vector3.new(0,0,0)
  151.                                                                 )})
  152.                                                                 game.Players.LocalPlayer.Character.PrimaryPart.Anchored = true
  153.                                                                 t:Play()
  154.                                                                 wait(0)
  155.                                                                 game.Players.LocalPlayer.Character.PrimaryPart.Anchored = false
  156.                                                                 wait()
  157.                                                                
  158.                                                                 if Backpack == true then
  159.                                                                         for i,v in pairs(game:GetService("Workspace")["_cache"].BackpackStartCache:GetChildren()) do
  160.                                                                                 local ohString1 = "Backpack"
  161.                                                                                 local ohNumber2 = v.Name
  162.                                                                                 local ohString3 = "BackpackStart"
  163.                                                                                 game:GetService("ReplicatedStorage").network_connections.interact_item:FireServer(ohString1, ohNumber2, ohString3)
  164.                                                                         end
  165.                                                                 end
  166.                                                                
  167.                                                                 if Magnet == true then
  168.                                                                         for i,v in pairs(game:GetService("Workspace")["_cache"].MagnetStartCache:GetChildren()) do
  169.                                                                                 local ohString1 = "Magnet"
  170.                                                                                 local ohNumber2 = v.Name
  171.                                                                                 local ohString3 = "MagnetStart"
  172.                                                                                 game:GetService("ReplicatedStorage").network_connections.interact_item:FireServer(ohString1, ohNumber2, ohString3)
  173.                                                                         end
  174.                                                                 end
  175.                                                                
  176.                                                                 if Quests == true then
  177.                                                                         for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.Main.Quests.Scroll:GetChildren()) do
  178.                                                                                 game:GetService("ReplicatedStorage").network_connections.claim_quest_rewards:FireServer(i)
  179.                                                                         end
  180.                                                                 end
  181.                                                                
  182.                                                                 if AutoRebirth == true then
  183.                                     game:GetService("ReplicatedStorage").network_connections.rebirth:FireServer(Rebirth)
  184.                                 end
  185.                                                         end
  186.                                                 end
  187.                                         end
  188.                                 end
  189.                         end
  190.                 end
  191.         end
  192.  
  193.         if AntiAfk == true then
  194.                 local bb=game:service'VirtualUser'
  195.                 bb:CaptureController()
  196.                 bb:ClickButton2(Vector2.new())
  197.         end
  198. end