local currentExploit = (KRNL_LOADED and "KRNL") or (is_synapse_function and "Synapse X") or (pebc_execute and "Protosmasher") or (is_sirhurt_closure and "Sirhurt") or (shadow_env and "Shadow") or (issentinelclosure and "Sentinel") or (getproximitypromptduration and "Scriptware") or "Unknown" local game_name = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name for i,v in pairs(game.CoreGui:GetChildren()) do if v.Name == "Orion" then v:Destroy() getgenv().autoplay = false getgenv().autokey = false getgenv().autoclick = false getgenv().autoevasion = false getgenv().antiafk = false getgenv().autorush = false getgenv().TargetDistance = math.huge end end local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))() local Window = OrionLib:MakeWindow({Name = game_name.." Using "..currentExploit, HidePremium = false, SaveConfig = true, ConfigFolder = "DarkHeroConfig"}) local Section = Window:MakeTab({ Name = "AutoPlay", Icon = "rbxassetid://4483345998", PremiumOnly = false }) local MiscSection = Window:MakeTab({ Name = "Misc", Icon = "rbxassetid://4483345998", PremiumOnly = false }) local CreditsSection = Window:MakeTab({ Name = "Credits", Icon = "rbxassetid://4483345998", PremiumOnly = false }) --variables local players = game:GetService("Players") local plr = players.LocalPlayer local root = plr.Character:FindFirstChild("HumanoidRootPart") local hum = plr.Character:FindFirstChild("Humanoid") local pathfindservice = game:GetService("PathfindingService") local First = 1 local Second = 2 local Third = 3 local Fourth = 4 local function GetClosest() local Character = plr.Character local HumanoidRootPart = Character and Character:WaitForChild("HumanoidRootPart") if not (Character or HumanoidRootPart) then return end getgenv().TargetDistance = math.huge local Target for i,v in ipairs(players:GetPlayers()) do if string.find(game:GetService("Workspace").mode.Value,"Teams") then if v ~= plr and v.Character and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:WaitForChild("team").Value ~= game.Players.LocalPlayer.Character:WaitForChild("team").Value then local TargetHRP = v.Character.HumanoidRootPart local mag = (HumanoidRootPart.Position - TargetHRP.Position).magnitude if mag < getgenv().TargetDistance then getgenv().TargetDistance = mag Target = v end end else if v ~= plr and v.Character and v.Character:FindFirstChild("HumanoidRootPart") then local TargetHRP = v.Character.HumanoidRootPart local mag = (HumanoidRootPart.Position - TargetHRP.Position).magnitude if mag < getgenv().TargetDistance then getgenv().TargetDistance = mag Target = v end end end end return Target end --Functions GoToClosest = function() if game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") and GetClosest().Character and GetClosest().Character.Humanoid.Health ~= 0 and GetClosest().Character:FindFirstChild("HumanoidRootPart") then local Humanoid = game.Players.LocalPlayer.Character:WaitForChild("Humanoid") Humanoid:MoveTo(GetClosest().Character.HumanoidRootPart.Position) end end Click = function() local args = { [1] = false } game:GetService("Players").LocalPlayer.click:FireServer(unpack(args)) end KeyPress = function(key) local args = { [1] = key, } game:GetService("Players").LocalPlayer.skill:FireServer(unpack(args)) end Section:AddToggle({ Name = "Autoplay", Default = false, Callback = function(Value) getgenv().autoplay = Value spawn(function() while wait() do if not getgenv().autoplay then return end GoToClosest() local args = { [1] = true } game:GetService("ReplicatedStorage").autobattle:FireServer(unpack(args)) repeat if not getgenv().autoplay then return end wait() game:GetService("ReplicatedStorage").autobattle:FireServer(unpack(args)) GoToClosest() until GetClosest().Character.Humanoid.Health == 0 or plr.Character.Humanoid.Health == 0 or GetClosest().Character == nil end end) end }) Section:AddToggle({ Name = "Auto skill", Default = false, Callback = function(Value) getgenv().autokey = Value spawn(function() while getgenv().autokey == true do KeyPress(1) KeyPress(2) KeyPress(3) KeyPress(4) wait() end end) end }) Section:AddToggle({ Name = "Autopunch", Default = false, Callback = function(Value) getgenv().autoclick = Value spawn(function() while getgenv().autoclick == true do Click() wait() end end) end }) Section:AddToggle({ Name = "Auto evasion", Default = false, Callback = function(Value) getgenv().autoevasion = Value spawn(function() while getgenv().autoevasion == true do game:GetService("Players").LocalPlayer.evasion:InvokeServer() end end) end }) Section:AddToggle({ Name = "Auto rush", Default = false, Callback = function(Value) getgenv().autorush = Value while getgenv().autorush == true do wait() local args = { [1] = { [1] = { [1] = GetClosest().Character, [2] = 167.52697848189672 }, [2] = { [1] = GetClosest().Character, [2] = 148.1996092938163 }, [3] = { [1] = GetClosest().Character, [2] = 141.7484622099797 }, [4] = { [1] = GetClosest().Character, [2] = 167.67246269796502 } } } game:GetService("Players").LocalPlayer.rush:FireServer(unpack(args)) end end }) MiscSection:AddToggle({ Name = "Anti-afk", Default = false, Callback = function(Value) getgenv().antiafk = Value local vu = game:GetService("VirtualUser") game:GetService("Players").LocalPlayer.Idled:connect(function() if not getgenv().antiafk then return end vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame) wait(1) vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame) end) end }) CreditsSection:AddButton({ Name = "My ScriptBlox Profile", Callback = function() setclipboard("https://scriptblox.com/u/Dark_Hero") OrionLib:MakeNotification({ Name = "Info", Content = "ScriptBlox Profile Link Was Copied To Clipboard", Image = "rbxassetid://4483345998", Time = 5 }) end }) CreditsSection:AddButton({ Name = "My Discord Server", Callback = function() setclipboard("https://discord.gg/dWeUtejQ6n") OrionLib:MakeNotification({ Name = "Info", Content = "Discord Server Invite Link Was Copied To Clipboard", Image = "rbxassetid://4483345998", Time = 5 }) end }) CreditsSection:AddLabel("All Credits Goes to Dark_Hero")