Elite Combat Hub V2
Key RequiredUniversal

Elite Combat Hub V2

Universal ScriptIdk_how_to_make_scriIdk_how_to_make_scri 2.5K views 401 executesUpdated May 31, 2026
Unrated
00
Lua Script•240 lines (8125 chars)
-- [[ Advanced Elite Combat Hub ]] --


local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()

local Window = Rayfield:CreateWindow({
   Name = "Elite Combat Hub V2",
   LoadingTitle = "Assembling Systems...",
   LoadingSubtitle = "by atharv",
   ConfigurationSaving = { Enabled = false },
   KeySystem = false
})

-- [[ Services & Variables ]] --
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Camera = workspace.CurrentCamera
local RunService = game:GetService("RunService")
local VirtualInputManager = game:GetService("VirtualInputManager")
local UserInputService = game:GetService("UserInputService")

local HubSettings = {
    AimbotEnabled = false,
    InstantLock = false,
    AutoShoot = false,
    TeamCheck = true,
    WallCheck = true,
    TargetPart = "Head",
    Smoothness = 0.2,
    Priority = "Cursor", -- Cursor / Distance
    
    -- FOV Settings
    UseFOV = false,
    FOVRadius = 100,
    FOVColor = Color3.fromRGB(255, 0, 0),
    
    -- Safety
    PanicKey = Enum.KeyCode.P
}

-- [[ FOV Circle Drawing Initialization ]] --
local FOVCircle = Drawing.new("Circle")
FOVCircle.Thickness = 1.5
FOVCircle.Filled = false
FOVCircle.Transparency = 1
FOVCircle.Visible = false

-- [[ Helper Functions ]] --

local function isVisible(targetCharacter, targetPart)
    if not HubSettings.WallCheck then return true end
    local origin = Camera.CFrame.Position
    local destination = targetPart.Position
    local direction = destination - origin
    
    local raycastParams = RaycastParams.new()
    raycastParams.FilterType = Enum.RaycastFilterType.Exclude
    raycastParams.FilterDescendantsInstances = {LocalPlayer.Character, targetCharacter}
    
    local result = workspace:Raycast(origin, direction, raycastParams)
    return result == nil
end

local function getBestTarget()
    local bestTarget = nil
    local shortestDistance = math.huge
    local mousePos = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y / 2)

    for _, player in ipairs(Players:GetPlayers()) do
        if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild(HubSettings.TargetPart) then
            local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
            if humanoid and humanoid.Health > 0 then
                
                -- Team Check
                if HubSettings.TeamCheck and player.Team == LocalPlayer.Team then continue end
                
                local targetPart = player.Character[HubSettings.TargetPart]
                
                -- Wall Check
                if not isVisible(player.Character, targetPart) then continue end
                
                local screenPos, onScreen = Camera:WorldToViewportPoint(targetPart.Position)
                if onScreen then
                    local screenPos2D = Vector2.new(screenPos.X, screenPos.Y)
                    local distanceToCursor = (screenPos2D - mousePos).Magnitude
                    
                    -- FOV Restriction Check
                    if HubSettings.UseFOV and distanceToCursor > HubSettings.FOVRadius then continue end
                    
                    if HubSettings.Priority == "Cursor" then
                        if distanceToCursor < shortestDistance then
                            bestTarget = player
                            shortestDistance = distanceToCursor
                        end
                    elseif HubSettings.Priority == "Distance" then
                        local actualDistance = (targetPart.Position - Camera.CFrame.Position).Magnitude
                        if actualDistance < shortestDistance then
                            bestTarget = player
                            shortestDistance = actualDistance
                        end
                    end
                end
            end
        end
    end
    return bestTarget
end

local function triggerShoot()
    VirtualInputManager:SendMouseButtonEvent(0, 0, 0, true, game, 0)
    task.wait(0.01)
    VirtualInputManager:SendMouseButtonEvent(0, 0, 0, false, game, 0)
end

-- [[ Main Engine Loops ]] --

RunService.RenderStepped:Connect(function()
    -- Update FOV Ring Position dynamically
    if HubSettings.UseFOV then
        FOVCircle.Position = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y / 2)
        FOVCircle.Radius = HubSettings.FOVRadius
        FOVCircle.Color = HubSettings.FOVColor
        FOVCircle.Visible = true
    else
        FOVCircle.Visible = false
    end

    -- Process Locking & Auto-firing
    if HubSettings.AimbotEnabled then
        local target = getBestTarget()
        if target and target.Character and target.Character:FindFirstChild(HubSettings.TargetPart) then
            local targetPos = target.Character[HubSettings.TargetPart].Position
            
            if HubSettings.InstantLock then
                Camera.CFrame = CFrame.new(Camera.CFrame.Position, targetPos)
            else
                Camera.CFrame = Camera.CFrame:Lerp(CFrame.new(Camera.CFrame.Position, targetPos), HubSettings.Smoothness)
            end
            
            if HubSettings.AutoShoot then
                task.spawn(triggerShoot)
            end
        end
    end
end)

-- Panic Button Handler
UserInputService.InputBegan:Connect(function(input, gameProcessed)
    if not gameProcessed and input.KeyCode == HubSettings.PanicKey then
        HubSettings.AimbotEnabled = false
        HubSettings.AutoShoot = false
        HubSettings.UseFOV = false
        Rayfield:Notify({
            Title = "PANIC SYSTEM ENGAGED",
            Content = "All features immediately disabled for safety.",
            Duration = 3,
            Image = 4483362458
        })
    end
end)

-- [[ UI Toggle Visibility Support ]] --
local MainTab = Window:CreateTab("Aimbot Engine", nil)
local ConfigTab = Window:CreateTab("FOV & Safety", nil)

-- Main Tab Components
MainTab:CreateSection("Core Automation")

MainTab:CreateToggle({
   Name = "Enable Aimbot System",
   CurrentValue = false,
   Callback = function(Value) HubSettings.AimbotEnabled = Value end,
})

MainTab:CreateToggle({
   Name = "Instant Hard-Lock",
   CurrentValue = false,
   Callback = function(Value) HubSettings.InstantLock = Value end,
})

MainTab:CreateToggle({
   Name = "Triggerbot (Auto-Shoot)",
   CurrentValue = false,
   Callback = function(Value) HubSettings.AutoShoot = Value end,
})

MainTab:CreateSlider({
   Name = "Aim Smoothness Control",
   Min = 0.01, max = 1, Increment = 0.05, Suffix = " Drag", CurrentValue = 0.2,
   Callback = function(Value) HubSettings.Smoothness = Value end,
})

MainTab:CreateSection("Target Settings")

MainTab:CreateDropdown({
   Name = "Target Component",
   Options = {"Head", "HumanoidRootPart", "UpperTorso"}, CurrentOption = {"Head"}, MultipleOptions = false,
   Callback = function(Option) HubSettings.TargetPart = Option[1] end,
})

MainTab:CreateDropdown({
   Name = "Target Prioritization",
   Options = {"Cursor", "Distance"}, CurrentOption = {"Cursor"}, MultipleOptions = false,
   Callback = function(Option) HubSettings.Priority = Option[1] end,
})

-- Configuration / Settings Tab Components
ConfigTab:CreateSection("Field of View Customization")

ConfigTab:CreateToggle({
   Name = "Use FOV Limit Circle",
   CurrentValue = false,
   Callback = function(Value) HubSettings.UseFOV = Value end,
})

ConfigTab:CreateSlider({
   Name = "FOV Circle Size",
   Min = 30, Max = 600, Increment = 10, Suffix = "px", CurrentValue = 100,
   Callback = function(Value) HubSettings.FOVRadius = Value end,
})

ConfigTab:CreateColorPicker({
    Name = "FOV Ring Color",
    TargetColor = Color3.fromRGB(255, 0, 0),
    Callback = function(Color) HubSettings.FOVColor = Color end,
})

ConfigTab:CreateSection("Filters & Fail-safes")

ConfigTab:CreateToggle({
   Name = "Team Filter",
   CurrentValue = true,
   Callback = function(Value) HubSettings.TeamCheck = Value end,
})

ConfigTab:CreateToggle({
   Name = "Wall Detection Filter",
   CurrentValue = true,
   Callback = function(Value) HubSettings.WallCheck = Value end,
})

Features & Information

### Elite Combat Hub V2 **Made by: atharv** A highly optimized, clean universal combat script built with the modern Rayfield UI library. Fully responsive on mobile executors like Delta, Codex, and Fluxus, as well as PC. ### Features: - **Aimbot Engine:** Toggle between smooth locking or frame-perfect Instant Hard-Lock. - **Triggerbot:** Auto-shoots automatically whenever an enemy enters your crosshair. - **Dynamic FOV Circle:** Draws a highly customizable screen overlay to limit your target zone. - **Smart Filters:** Toggleable Team Check and Wall Check (Raycasting) to look legitimate. - **Panic Key:** Instantly press 'P' on your keyboard/input to disable all features if a moderator spectates you.

Community Comments (7)

How is it guys

2Sharp2SharpJun 1, 2026

firstly the toggle slider isnt there as it failed to load because of badly written code

2Sharp2SharpJun 1, 2026

and its clearly ai made

2Sharp2SharpJun 1, 2026

you didnt even try to hide the fact that the description was clearly ai generated

2Sharp2SharpJun 1, 2026

i had to fix your script before i could even use it

Replying to @2Sharp

@2Sharp I'm sorry

Replying to @2Sharp

How you fix

More Scripts for Universal Scripts