Advertisement
stronggestpunch

Auto orbs

Sep 23rd, 2021
680
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GDScript 11.00 KB | None | 0 0
  1. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/Maxgat5/UiLib/main/lua')))()
  2. local w = library:CreateWindow("Strongest Punch Simulator")
  3. local b = w:CreateFolder("AutoFarm (Detectable)")
  4. local f = w:CreateFolder("AutoFarm (Undetectable)")
  5. local e = w:CreateFolder("Mix")
  6. local u = w:CreateFolder("Credits")
  7.  
  8. b:Toggle("AutoClicker",function(bool)
  9.     shared.toggle = bool
  10.     AutoClickerv1 = bool
  11. end)
  12.  
  13. b:Toggle("AutoCollectOrbs",function(bool)
  14.     shared.toggle = bool
  15.     AutoCollectOrbsv1 = bool
  16. end)
  17.  
  18. b:Toggle("Next Map",function(bool)
  19.     shared.toggle = bool
  20.     NextMap = bool
  21. end)
  22.  
  23. b:Toggle("Upgrade Pet",function(bool)
  24.     shared.toggle = bool
  25.     UpgradePet = bool
  26. end)
  27.  
  28. f:Toggle("AutoClicker",function(bool)
  29.     shared.toggle = bool
  30.     AutoClickerv2 = bool
  31. end)
  32.  
  33. f:Toggle("AutoCollectOrbs",function(bool)
  34.     shared.toggle = bool
  35.     AutoCollectOrbsv2 = bool
  36. end)
  37.  
  38. e:Toggle("Noclip",function(bool)
  39.     shared.toggle = bool
  40.     noclip = bool
  41. end)
  42.  
  43. e:Toggle("AntiAfk",function(bool)
  44.     shared.toggle = bool
  45.     AntiAfk = bool
  46. end)
  47.  
  48. --Credits
  49. u:Button(game:service("HttpService"):JSONDecode(game:HttpGet("https://raw.githubusercontent.com/Maxgat5/Decode/main/JSON")).username,function()
  50.     setclipboard(game:service("HttpService"):JSONDecode(game:HttpGet("https://raw.githubusercontent.com/Maxgat5/Decode/main/JSON")).username)
  51. end)
  52.  
  53. u:Button("Discord Server",function()
  54.     setclipboard(game:service("HttpService"):JSONDecode(game:HttpGet("https://raw.githubusercontent.com/Maxgat5/Decode/main/JSON")).discord)
  55. end)
  56.  
  57. game:GetService('RunService').Stepped:connect(function()
  58.     spawn(function()
  59.         if AntiAfk == true then
  60.             local bb=game:service'VirtualUser'
  61.             bb:CaptureController()
  62.             bb:ClickButton2(Vector2.new())
  63.         end
  64.     end)
  65.     spawn(function()
  66.         if AutoClickerv2 == true then
  67.             mouse1press() wait() mouse1release()
  68.         end
  69.     end)
  70. end)
  71.  
  72. spawn(function()
  73.     while wait() do
  74.         if UpgradePet == true then
  75.             firesignal(game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui["Pet_Frame"]["UpgradePet_Btn"].Activated)
  76.         end
  77.     end
  78. end)
  79.  
  80. spawn(function()
  81.     while wait() do
  82.         if NextMap == true then
  83.             firesignal(game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui["Menu_Frame"]["MapTeleportation_Frame"]["NextMap_ImgBtn"].Activated)
  84.         end
  85.     end
  86. end)
  87.  
  88. spawn(function()
  89.     while wait(1) do
  90.         if noclip == true then
  91.             for i=1,10 do
  92.                 pcall(function()
  93.                     wait()
  94.                     game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  95.                 end)
  96.             end
  97.         end
  98.     end
  99. end)
  100.  
  101. spawn(function()
  102.     world = ""
  103.     allow = true
  104.     while wait(math.random(1,3)) do
  105.         if AutoCollectOrbsv1 == true then
  106.             if allow == true then
  107.                 allow = false
  108.                 function ClosestPart()
  109.                     local dist = math.huge
  110.                     local target = nil
  111.                     for i,v in pairs(game:GetService("Workspace").Map.Stages.Boosts:GetDescendants()) do
  112.                         if v.ClassName == "TouchTransmitter" then
  113.                             local magnitude = (v.Parent.Position - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude
  114.                             if magnitude < dist then
  115.                                 dist = magnitude
  116.                                 target = v.Parent
  117.                             end
  118.                         end
  119.                     end
  120.                     return target
  121.                 end
  122.                 world = ClosestPart().Parent.Parent
  123.                 function ClosestPart1()
  124.                     local dist = math.huge
  125.                     local target = nil
  126.                     for i,v in pairs(game:GetService("Workspace").Map.Stages.Boosts:GetChildren()) do
  127.                         if tostring(v.Name) == tostring(world) then
  128.                             for i,v1 in pairs(v:GetChildren()) do
  129.                                 for i,v2 in pairs(v1:GetChildren()) do
  130.                                     for i,v3 in pairs(v2:GetChildren()) do
  131.                                         if v3.ClassName == "TouchTransmitter" then
  132.                                             if v3.Parent.Transparency ~= 1 then
  133.                                                 local magnitude = (v3.Parent.Position - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude
  134.                                                 if magnitude < dist then
  135.                                                     dist = magnitude
  136.                                                     target = v3.Parent
  137.                                                 end
  138.                                             end
  139.                                         end
  140.                                     end
  141.                                 end
  142.                             end
  143.                         end
  144.                     end
  145.                     return target
  146.                 end
  147.             end
  148.             pcall(function()
  149.                 ClosestPart1().CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,0,0)
  150.             end)
  151.         else
  152.             allow = true
  153.             world = ""
  154.         end
  155.     end
  156. end)
  157.  
  158. spawn(function()
  159.     world = ""
  160.     allow = true
  161.     while wait() do
  162.         if AutoCollectOrbsv2 == true then
  163.             if allow == true then
  164.                 allow = false
  165.                 function ClosestPart()
  166.                     local dist = math.huge
  167.                     local target = nil
  168.                     for i,v in pairs(game:GetService("Workspace").Map.Stages.Boosts:GetDescendants()) do
  169.                         if v.ClassName == "TouchTransmitter" then
  170.                             local magnitude = (v.Parent.Position - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude
  171.                             if magnitude < dist then
  172.                                 dist = magnitude
  173.                                 target = v.Parent
  174.                             end
  175.                         end
  176.                     end
  177.                     return target
  178.                 end
  179.                 world = ClosestPart().Parent.Parent
  180.                 function ClosestPart1()
  181.                     local dist = math.huge
  182.                     local target = nil
  183.                     for i,v in pairs(game:GetService("Workspace").Map.Stages.Boosts:GetChildren()) do
  184.                         if tostring(v.Name) == tostring(world) then
  185.                             for i,v1 in pairs(v:GetChildren()) do
  186.                                 for i,v2 in pairs(v1:GetChildren()) do
  187.                                     for i,v3 in pairs(v2:GetChildren()) do
  188.                                         if v3.ClassName == "TouchTransmitter" then
  189.                                             if v3.Parent.Transparency ~= 1 then
  190.                                                 local magnitude = (v3.Parent.Position - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude
  191.                                                 if magnitude < dist then
  192.                                                     dist = magnitude
  193.                                                     target = v3.Parent
  194.                                                 end
  195.                                             end
  196.                                         end
  197.                                     end
  198.                                 end
  199.                             end
  200.                         end
  201.                     end
  202.                     return target
  203.                 end
  204.             end
  205.             pcall(function()
  206.                 game.Players.LocalPlayer.Character.Humanoid:MoveTo(ClosestPart1().Position)
  207.             end)
  208.         else
  209.             allow = true
  210.             world = ""
  211.         end
  212.     end
  213.     game:GetService('Players').LocalPlayer.Character:WaitForChild("Humanoid").Died:Connect(function()
  214.         world = ""
  215.         allow = true
  216.         while wait() do
  217.             if AutoCollectOrbsv2 == true then
  218.                 if allow == true then
  219.                     allow = false
  220.                     function ClosestPart()
  221.                         local dist = math.huge
  222.                         local target = nil
  223.                         for i,v in pairs(game:GetService("Workspace").Map.Stages.Boosts:GetDescendants()) do
  224.                             if v.ClassName == "TouchTransmitter" then
  225.                                 local magnitude = (v.Parent.Position - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude
  226.                                 if magnitude < dist then
  227.                                     dist = magnitude
  228.                                     target = v.Parent
  229.                                 end
  230.                             end
  231.                         end
  232.                         return target
  233.                     end
  234.                     world = ClosestPart().Parent.Parent
  235.                     function ClosestPart1()
  236.                         local dist = math.huge
  237.                         local target = nil
  238.                         for i,v in pairs(game:GetService("Workspace").Map.Stages.Boosts:GetChildren()) do
  239.                             if tostring(v.Name) == tostring(world) then
  240.                                 for i,v1 in pairs(v:GetChildren()) do
  241.                                     for i,v2 in pairs(v1:GetChildren()) do
  242.                                         for i,v3 in pairs(v2:GetChildren()) do
  243.                                             if v3.ClassName == "TouchTransmitter" then
  244.                                                 if v3.Parent.Transparency ~= 1 then
  245.                                                     local magnitude = (v3.Parent.Position - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude
  246.                                                     if magnitude < dist then
  247.                                                         dist = magnitude
  248.                                                         target = v3.Parent
  249.                                                     end
  250.                                                 end
  251.                                             end
  252.                                         end
  253.                                     end
  254.                                 end
  255.                             end
  256.                         end
  257.                         return target
  258.                     end
  259.                 end
  260.                 pcall(function()
  261.                     game.Players.LocalPlayer.Character.Humanoid:MoveTo(ClosestPart1().Position)
  262.                 end)
  263.             else
  264.                 allow = true
  265.                 world = ""
  266.             end
  267.         end
  268.     end)
  269. end)
  270.  
  271. while wait() do
  272.     if AutoClickerv1 == true then
  273.         game:GetService("ReplicatedStorage").RemoteEvent:FireServer({"Activate_Punch"})
  274.     end
  275. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement