-- Join Discord For More Open Sources, Coming Soon https://discord.gg/axonic repeat task.wait() until game:IsLoaded() local Players = game:GetService("Players") local RunService = game:GetService("RunService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Workspace = game:GetService("Workspace") local UserInputService = game:GetService("UserInputService") local LocalPlayer = Players.LocalPlayer or Players.PlayerAdded:Wait() local Camera = Workspace.CurrentCamera local env = (getgenv and getgenv()) or _G if type(env.AxonicRivalsCleanup) == "function" then pcall(env.AxonicRivalsCleanup) end local function safeRequire(instance) if not instance then return end local ok, result = pcall(require, instance) if ok then return result end end local scripts = LocalPlayer:WaitForChild("PlayerScripts") local Gun = safeRequire(scripts:WaitForChild("Modules"):WaitForChild("ItemTypes"):WaitForChild("Gun")) local controllers = scripts:WaitForChild("Controllers") local FighterController = safeRequire(controllers:WaitForChild("FighterController")) local DuelController = safeRequire(controllers:FindFirstChild("DuelController")) local Utility = safeRequire(ReplicatedStorage:WaitForChild("Modules"):WaitForChild("Utility")) if not (Gun and FighterController and Utility) then return end local State = { SilentAim = true, AimPart = "Smart", ShowFOV = true, FOV = 180, WallCheck = true, StickyTarget = true, HitChance = 100, MaxHitDistance = 350, ESP = true, } local lockGrace = 0.18 local Connections = {} local function connect(signal, fn) local c = signal:Connect(fn) Connections[#Connections + 1] = c return c end local function getHumanoid(character) return character and character:FindFirstChildOfClass("Humanoid") or nil end local function isAlive(player) local humanoid = getHumanoid(player and player.Character) return humanoid ~= nil and humanoid.Health > 0 end local function getLocalDuel() if not DuelController or not DuelController.GetDuel then return nil end local ok, duel = pcall(DuelController.GetDuel, DuelController, LocalPlayer) return ok and duel or nil end local function isEnemy(player) if not player or player == LocalPlayer then return false end local duel = getLocalDuel() if not duel or not duel.GetDueler then return false end local okMine, myDueler = pcall(duel.GetDueler, duel, LocalPlayer) local okTheirs, theirDueler = pcall(duel.GetDueler, duel, player) if not okMine or not okTheirs or not myDueler or not theirDueler then return false end local myTeam local theirTeam if myDueler.Get then pcall(function() myTeam = myDueler:Get("TeamID") end) end if theirDueler.Get then pcall(function() theirTeam = theirDueler:Get("TeamID") end) end if myTeam ~= nil and theirTeam ~= nil then return myTeam ~= theirTeam end return true end local RayParams = RaycastParams.new() RayParams.FilterType = Enum.RaycastFilterType.Exclude RayParams.IgnoreWater = true local function updateRayFilter() local list = {} if LocalPlayer.Character then table.insert(list, LocalPlayer.Character) end RayParams.FilterDescendantsInstances = list end updateRayFilter() connect(LocalPlayer.CharacterAdded, function() task.defer(updateRayFilter) end) local function rawVisibleFrom(origin, character, part) if not (origin and character and part) then return false end local result = Workspace:Raycast(origin, part.Position - origin, RayParams) return not result or result.Instance:IsDescendantOf(character) end local function visibleFrom(origin, character, part) if not State.WallCheck then return true end return rawVisibleFrom(origin, character, part) end local SmartParts = { "Head", "UpperTorso", "LowerTorso", "HumanoidRootPart", "LeftUpperArm", "RightUpperArm", "LeftUpperLeg", "RightUpperLeg", } local CurrentTargetPlayer local CurrentTargetPart local CurrentTargetLostAt = 0 local function targetParts(character) if State.AimPart ~= "Smart" then local part = character and character:FindFirstChild(State.AimPart) if part and part:IsA("BasePart") then print("Join Discord https://discord.gg/axonic") return {part} end return {} end local parts = {} for _, name in ipairs(SmartParts) do local part = character and character:FindFirstChild(name) if part and part:IsA("BasePart") then table.insert(parts, part) end end return parts end local function getPartMetrics(part) Camera = Workspace.CurrentCamera if not Camera or not part then return nil end local screen, onScreen = Camera:WorldToViewportPoint(part.Position) if not onScreen or screen.Z <= 0 then return nil end local viewport = Camera.ViewportSize local center = Vector2.new(viewport.X * 0.5, viewport.Y * 0.5) local screenDistance = (Vector2.new(screen.X, screen.Y) - center).Magnitude local worldDistance = (part.Position - Camera.CFrame.Position).Magnitude return screenDistance, worldDistance end local function bestPartForPlayer(player) local character = player.Character if not character then return nil end Camera = Workspace.CurrentCamera if not Camera then return nil end local origin = Camera.CFrame.Position local bestPart local bestPartScore = math.huge local bestScreenDistance local bestWorldDistance for _, part in ipairs(targetParts(character)) do local screenDistance, worldDistance = getPartMetrics(part) if screenDistance and worldDistance <= State.MaxHitDistance and screenDistance <= State.FOV and visibleFrom(origin, character, part) then local priorityPenalty = 0 if State.AimPart == "Smart" then if part.Name == "Head" then priorityPenalty = 0 elseif part.Name == "UpperTorso" then priorityPenalty = 1.5 elseif part.Name == "LowerTorso" or part.Name == "HumanoidRootPart" then priorityPenalty = 3 else priorityPenalty = 6 end end local partScore = screenDistance + priorityPenalty if partScore < bestPartScore then bestPartScore = partScore bestPart = part bestScreenDistance = screenDistance bestWorldDistance = worldDistance end end end return bestPart, bestScreenDistance, bestWorldDistance end local function findBestTarget() local bestPlayer local bestPart local bestScore = math.huge for _, player in ipairs(Players:GetPlayers()) do if isEnemy(player) and isAlive(player) then local part, screenDistance, worldDistance = bestPartForPlayer(player) if part then local score = screenDistance + worldDistance * 0.035 if score < bestScore then bestScore = score bestPlayer = player bestPart = part end end end end return bestPlayer, bestPart end local function lockedTargetStillValid() local player = CurrentTargetPlayer local part = CurrentTargetPart if not State.StickyTarget or not player or not part then return false end if not player.Parent or not part.Parent or not isEnemy(player) or not isAlive(player) then return false end local screenDistance, worldDistance = getPartMetrics(part) if not screenDistance then return false end if worldDistance > State.MaxHitDistance or screenDistance > State.FOV * 1.20 then return false end Camera = Workspace.CurrentCamera if State.WallCheck and (not Camera or not visibleFrom(Camera.CFrame.Position, player.Character, part)) then return false end return true end local function acquireTarget(forceFresh) local now = os.clock() if lockedTargetStillValid() then CurrentTargetLostAt = 0 return CurrentTargetPlayer, CurrentTargetPart end if (not forceFresh) and CurrentTargetPlayer and State.StickyTarget and lockGrace > 0 then if CurrentTargetLostAt == 0 then CurrentTargetLostAt = now return nil, nil end if now - CurrentTargetLostAt < lockGrace then return nil, nil end end local player, part = findBestTarget() CurrentTargetPlayer = player CurrentTargetPart = part CurrentTargetLostAt = 0 return player, part end local FOVCircle pcall(function() if Drawing and Drawing.new then FOVCircle = Drawing.new("Circle") FOVCircle.Filled = false FOVCircle.Thickness = 1 FOVCircle.NumSides = 80 FOVCircle.Color = Color3.new(1, 1, 1) FOVCircle.Transparency = 0.85 end end) local OriginalGunStartShooting = Gun.StartShooting local ShotOffset = Utility:EncodeCFrame(CFrame.new(0.43, 0.25, 0.42)) local ShotKey0 = utf8.char(0) local ShotKey1 = utf8.char(1) local ShotKey2 = utf8.char(2) local ShotKey3 = utf8.char(3) local function buildShotPayload(origin, target, part) local aimCFrame = Utility:EncodeCFrame(CFrame.new(origin, target)) return { [ShotKey0] = aimCFrame, [ShotKey1] = aimCFrame, [ShotKey2] = part, [ShotKey3] = ShotOffset, } end local function writeShotPayload(cameraData, payload) if type(cameraData) ~= "table" then return payload end cameraData[ShotKey0] = payload[ShotKey0] cameraData[ShotKey1] = payload[ShotKey1] cameraData[ShotKey2] = payload[ShotKey2] cameraData[ShotKey3] = payload[ShotKey3] return cameraData end Gun.StartShooting = function(self, ...) local results = table.pack(OriginalGunStartShooting(self, ...)) if not self or not self.ClientFighter or not self.ClientFighter.IsLocalPlayer then return table.unpack(results, 1, results.n) end if results[1] ~= true or results[2] ~= "StartShooting" then return table.unpack(results, 1, results.n) end if not State.SilentAim or math.random(1, 100) > State.HitChance then return table.unpack(results, 1, results.n) end local targetPlayer, part = acquireTarget(true) if not targetPlayer or not part or not part.Parent then return table.unpack(results, 1, results.n) end local character = LocalPlayer.Character local root = character and character:FindFirstChild("HumanoidRootPart") if not root then return table.unpack(results, 1, results.n) end results[3] = writeShotPayload(results[3], buildShotPayload(root.Position, part.Position, part)) return table.unpack(results, 1, results.n) end local ESPFolder = Instance.new("Folder") ESPFolder.Name = "_AxonicRivalsESP" ESPFolder.Parent = Workspace local ESPObjects = {} local function removeESP(player) local entry = ESPObjects[player] if not entry then return end if entry.Highlight then entry.Highlight:Destroy() end if entry.Gui then entry.Gui:Destroy() end ESPObjects[player] = nil end local function enemyWeaponName(player) if not FighterController or not FighterController.GetFighter then return end local ok, fighter = pcall(FighterController.GetFighter, FighterController, player) if ok and fighter and fighter.EquippedItem then return fighter.EquippedItem.Name end end local function updateESP() for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer then local character = player.Character local head = character and character:FindFirstChild("Head") if not State.ESP or not isEnemy(player) or not isAlive(player) or not head then removeESP(player) else local entry = ESPObjects[player] if entry and entry.Character ~= character then removeESP(player) entry = nil end if not entry then local highlight = Instance.new("Highlight") highlight.Name = "AxonicESP" highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop highlight.FillTransparency = 0.72 highlight.OutlineTransparency = 0 highlight.Adornee = character highlight.Parent = ESPFolder local gui = Instance.new("BillboardGui") gui.Name = "AxonicName" gui.Size = UDim2.fromOffset(240, 52) gui.StudsOffset = Vector3.new(0, 2.8, 0) gui.AlwaysOnTop = true gui.Adornee = head gui.Parent = ESPFolder local text = Instance.new("TextLabel") text.Name = "Text" text.Size = UDim2.fromScale(1, 1) text.BackgroundTransparency = 1 text.TextSize = 14 text.Font = Enum.Font.GothamSemibold text.TextStrokeTransparency = 0.45 text.TextColor3 = Color3.new(1, 1, 1) text.TextWrapped = true text.Parent = gui entry = {Character = character, Highlight = highlight, Gui = gui, Label = text} ESPObjects[player] = entry end local lines = {player.DisplayName} local root = character:FindFirstChild("HumanoidRootPart") local myRoot = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") if root and myRoot then lines[1] = lines[1] .. " | " .. math.floor((root.Position - myRoot.Position).Magnitude + .5) .. "m" end local humanoid = getHumanoid(character) local details = {} if humanoid then details[#details + 1] = "HP " .. math.floor(humanoid.Health + .5) end local weapon = enemyWeaponName(player) if weapon then details[#details + 1] = weapon end if #details > 0 then lines[#lines + 1] = table.concat(details, " | ") end entry.Label.Text = table.concat(lines, "\n") end end end for player in pairs(ESPObjects) do if not player.Parent then removeESP(player) end end end connect(Players.PlayerRemoving, removeESP) local discordGui local lastViewport local function makeDiscordPopup() local parent = LocalPlayer:WaitForChild("PlayerGui") local previous = parent:FindFirstChild("AxonicRivalsInvite") if previous then previous:Destroy() end local gui = Instance.new("ScreenGui") gui.Name = "AxonicRivalsInvite" gui.IgnoreGuiInset = true gui.ResetOnSpawn = false gui.DisplayOrder = 100 gui.Parent = parent discordGui = gui local theme = { Window = Color3.fromRGB(13, 13, 15), Header = Color3.fromRGB(17, 17, 20), Card = Color3.fromRGB(20, 20, 24), Button = Color3.fromRGB(22, 22, 26), Hover = Color3.fromRGB(29, 30, 35), Border = Color3.fromRGB(40, 41, 47), BorderBright = Color3.fromRGB(64, 66, 75), Text = Color3.fromRGB(242, 243, 246), Muted = Color3.fromRGB(156, 158, 167), Faint = Color3.fromRGB(98, 100, 109), } local function make(class, props, parentObj) local instance = Instance.new(class) for key, value in pairs(props) do instance[key] = value end instance.Parent = parentObj return instance end local function round(obj, amount) make("UICorner", {CornerRadius = UDim.new(0, amount)}, obj) end local function outline(obj, color, transparency) make("UIStroke", { Color = color, Transparency = transparency or 0, Thickness = 1, }, obj) end local function label(obj, value, x, y, w, h, size, color, font) return make("TextLabel", { Position = UDim2.new(0, x, 0, y), Size = UDim2.fromOffset(w, h), BackgroundTransparency = 1, Text = value, TextColor3 = color, TextSize = size, Font = font or Enum.Font.Gotham, TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Center, }, obj) end local width, height = 360, 240 local panel = make("Frame", { Name = "Window", AnchorPoint = Vector2.new(.5, .5), Position = UDim2.fromScale(.5, .5), Size = UDim2.fromOffset(width, height), BackgroundColor3 = theme.Window, ClipsDescendants = true, BorderSizePixel = 0, }, gui) round(panel, 7) outline(panel, theme.BorderBright, .34) local scale = make("UIScale", {Scale = 1}, panel) local header = make("Frame", { Name = "Header", Size = UDim2.new(1, 0, 0, 49), BackgroundColor3 = theme.Header, BorderSizePixel = 0, }, panel) round(header, 7) make("Frame", { Position = UDim2.fromOffset(0, 7), Size = UDim2.new(1, 0, 1, -7), BackgroundColor3 = theme.Header, BorderSizePixel = 0, }, header) make("Frame", { Position = UDim2.new(0, 0, 1, -1), Size = UDim2.new(1, 0, 0, 1), BackgroundColor3 = theme.Border, BorderSizePixel = 0, }, header) label(header, "Axonic", 15, 6, 220, 20, 15, theme.Text, Enum.Font.GothamBold) label(header, "RIVALS / Open Source", 15, 26, 225, 13, 10, theme.Muted) local dragHandle = make("TextButton", { Name = "DragHandle", Size = UDim2.new(1, -48, 1, 0), BackgroundTransparency = 1, Text = "", Active = true, AutoButtonColor = false, ZIndex = 2, }, header) local close = make("TextButton", { Name = "Close", Position = UDim2.new(1, -40, 0, 11), Size = UDim2.fromOffset(27, 27), BackgroundColor3 = theme.Button, Text = "×", TextSize = 15, Font = Enum.Font.GothamMedium, TextColor3 = theme.Muted, AutoButtonColor = false, BorderSizePixel = 0, ZIndex = 3, }, header) round(close, 3) outline(close, theme.Border, .3) close.MouseEnter:Connect(function() close.BackgroundColor3 = theme.Hover end) close.MouseLeave:Connect(function() close.BackgroundColor3 = theme.Button end) close.Activated:Connect(function() gui:Destroy() end) local dragging = false local dragStart, startPosition, touchInput dragHandle.InputBegan:Connect(function(input) local kind = input.UserInputType if kind ~= Enum.UserInputType.MouseButton1 and kind ~= Enum.UserInputType.Touch then return end dragging = true dragStart = input.Position startPosition = panel.Position touchInput = kind == Enum.UserInputType.Touch and input or nil end) connect(UserInputService.InputChanged, function(input) if not dragging or not panel.Parent then return end if input.UserInputType ~= Enum.UserInputType.MouseMovement and input ~= touchInput then return end local viewport = Workspace.CurrentCamera and Workspace.CurrentCamera.ViewportSize if not viewport then return end local delta = input.Position - dragStart local halfWidth = panel.AbsoluteSize.X * .5 local halfHeight = panel.AbsoluteSize.Y * .5 local centerX = viewport.X * startPosition.X.Scale + startPosition.X.Offset + delta.X local centerY = viewport.Y * startPosition.Y.Scale + startPosition.Y.Offset + delta.Y panel.Position = UDim2.fromOffset( math.clamp(centerX, math.min(halfWidth + 8, viewport.X * .5), math.max(viewport.X - halfWidth - 8, viewport.X * .5)), math.clamp(centerY, math.min(halfHeight + 8, viewport.Y * .5), math.max(viewport.Y - halfHeight - 8, viewport.Y * .5)) ) end) connect(UserInputService.InputEnded, function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input == touchInput then dragging = false touchInput = nil end end) label(panel, "OPEN-SOURCE SCRIPTS", 15, 59, 220, 14, 10, theme.Faint, Enum.Font.GothamBold) for index, name in ipairs({"Blox Fruits", "Murder Mystery 2", "RIVALS"}) do local row = make("Frame", { Name = "Game" .. index, Position = UDim2.fromOffset(15, 79 + (index - 1) * 33), Size = UDim2.new(1, -30, 0, 29), BackgroundColor3 = theme.Card, BorderSizePixel = 0, }, panel) round(row, 3) outline(row, theme.Border, .27) label(row, name, 13, 0, 285, 29, 12, theme.Text, Enum.Font.GothamMedium) end label(panel, "discord.gg/axonic", 15, 184, 180, 13, 10, theme.Muted) local copyButton = make("TextButton", { Name = "CopyDiscordInvite", Position = UDim2.fromOffset(15, 204), Size = UDim2.new(1, -30, 0, 28), BackgroundColor3 = theme.Button, BorderSizePixel = 0, Text = "COPY DISCORD LINK (CLICK)", TextSize = 11, TextColor3 = theme.Text, Font = Enum.Font.GothamMedium, AutoButtonColor = false, }, panel) round(copyButton, 4) outline(copyButton, theme.BorderBright, .3) copyButton.MouseEnter:Connect(function() copyButton.BackgroundColor3 = theme.Hover end) copyButton.MouseLeave:Connect(function() copyButton.BackgroundColor3 = theme.Button end) copyButton.Activated:Connect(function() local clipboard = setclipboard or toclipboard local copied = type(clipboard) == "function" and pcall(clipboard, "https://discord.gg/axonic") copyButton.Text = copied and "COPIED" or "discord.gg/axonic" end) local lastViewport local function fit() local camera = Workspace.CurrentCamera local viewport = camera and camera.ViewportSize if not viewport or viewport == lastViewport then return end lastViewport = viewport scale.Scale = math.clamp(math.min((viewport.X - 24) / width, (viewport.Y - 24) / height), .6, 1) end fit() connect(RunService.RenderStepped, function() if gui.Parent then fit() end end) end pcall(makeDiscordPopup) local tickAccumulator = 0 local espAccumulator = 0 connect(RunService.RenderStepped, function(dt) Camera = Workspace.CurrentCamera if FOVCircle then local viewport = Camera and Camera.ViewportSize or Vector2.zero FOVCircle.Position = Vector2.new(viewport.X * .5, viewport.Y * .5) FOVCircle.Radius = State.FOV FOVCircle.Visible = State.SilentAim and State.ShowFOV end tickAccumulator += dt if tickAccumulator >= .016 then tickAccumulator = 0 if State.SilentAim then acquireTarget() end end espAccumulator += dt if espAccumulator >= .15 then espAccumulator = 0 pcall(updateESP) end end) env.AxonicRivalsCleanup = function() State.SilentAim = false if Gun.StartShooting ~= OriginalGunStartShooting then Gun.StartShooting = OriginalGunStartShooting end for _, c in ipairs(Connections) do pcall(function() c:Disconnect() end) end table.clear(Connections) if FOVCircle then pcall(function() FOVCircle:Remove() end) end for player in pairs(ESPObjects) do removeESP(player) end if ESPFolder then ESPFolder:Destroy() end if discordGui then discordGui:Destroy() end env.AxonicRivalsCleanup = nil end