Advertisement
anonmods

garbagemagnetsims

Sep 15th, 2021
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/Maxgat5/UiLib/main/lua')))()
  2. local w = library:CreateWindow("Garbage Magnet Simulator")
  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. SelectedEgg = ""
  8. Eggs = {}
  9. for i,v in pairs(game:GetService("ReplicatedStorage").Assets.Eggs:GetChildren()) do
  10. if not table.find(Eggs,v.Name) then
  11. table.insert(Eggs,v.Name)
  12. end
  13. end
  14.  
  15. b:Toggle("AutoCollectDrop",function(bool)
  16. shared.toggle = bool
  17. AutoCollectDrop = bool
  18. end)
  19.  
  20. b:Toggle("AutoSell",function(bool)
  21. shared.toggle = bool
  22. AutoSell = bool
  23. end)
  24.  
  25. f:Dropdown("Select Egg",Eggs,true,function(a)
  26. SelectedEgg = a
  27. end)
  28.  
  29. f:Toggle("Egg",function(bool)
  30. shared.toggle = bool
  31. Egg = bool
  32. end)
  33.  
  34. e:Toggle("AntiAfk",function(bool)
  35. shared.toggle = bool
  36. AntiAfk = bool
  37. end)
  38.  
  39. e:Button("Open Shop",function()
  40. game:GetService("Workspace").Debris.Activations.Shop.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  41. end)
  42. --Credits
  43. u:Button("NAYPRAMX#0562",function()
  44. setclipboard("NAYPRAMX#0562")
  45. end)
  46.  
  47. u:Button(game:service("HttpService"):JSONDecode(game:HttpGet("https://raw.githubusercontent.com/Maxgat5/Decode/main/JSON")).username,function()
  48. setclipboard(game:service("HttpService"):JSONDecode(game:HttpGet("https://raw.githubusercontent.com/Maxgat5/Decode/main/JSON")).username)
  49. end)
  50.  
  51. u:Button("Discord Server",function()
  52. setclipboard(game:service("HttpService"):JSONDecode(game:HttpGet("https://raw.githubusercontent.com/Maxgat5/Decode/main/JSON")).discord)
  53. end)
  54.  
  55. game:GetService('RunService').Stepped:connect(function()
  56. spawn(function()
  57. if AntiAfk == true then
  58. local bb=game:service'VirtualUser'
  59. bb:CaptureController()
  60. bb:ClickButton2(Vector2.new())
  61. end
  62. end)
  63. end)
  64.  
  65. function ClosestPart()
  66. local dist = math.huge
  67. local target = nil
  68. for i,v in pairs(game:GetService("Workspace").Debris.Areas:GetChildren()) do
  69. local magnitude = (v.Position - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude
  70. if magnitude < dist then
  71. dist = magnitude
  72. target = v
  73. end
  74. end
  75. return target
  76. end
  77.  
  78. spawn(function()
  79. while wait() do
  80. if Egg == true then
  81. game:GetService("ReplicatedStorage").Assets.Events.RemoteEvent:FireServer("Buy This Egg",SelectedEgg)
  82. end
  83. end
  84. end)
  85.  
  86. spawn(function()
  87. while wait() do
  88. if AutoSell == true then
  89. game:GetService("Workspace").Debris.Activations.Selling.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,0,100)
  90. wait(.1)
  91. game:GetService("Workspace").Debris.Activations.Selling.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,0,0)
  92. wait(.1)
  93. end
  94. end
  95. end)
  96.  
  97. spawn(function()
  98. while wait() do
  99. if AutoCollectDrop == true then
  100. for i,v in pairs(game:GetService("Workspace").Debris.Areas[ClosestPart().Name].Pickups:GetChildren()) do
  101. v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,0,0)
  102. end
  103. end
  104. end
  105. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement