Aimbot
Key RequiredUniversal

Aimbot

Universal ScriptAjnurHubAjnurHub 63 views 196 executesUpdated Jul 8, 2026
Unrated
00
Lua Script•72 lines (2344 chars)
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local LocalPlayer = Players.LocalPlayer
local Camera = workspace.CurrentCamera

local FOV_Radius = 300
local IsAiming = false

local FOVCircle = Drawing.new("Circle")
FOVCircle.Thickness = 2
FOVCircle.NumSides = 60
FOVCircle.Radius = FOV_Radius
FOVCircle.Filled = false
FOVCircle.Color = Color3.fromRGB(255, 0, 0)
FOVCircle.Visible = true
FOVCircle.Transparency = 0.8

local function GetScreenCenter()
    return Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y / 2)
end

local function GetClosestPlayer()
    local closest, dist = nil, FOV_Radius
    local center = GetScreenCenter()
    
    for _, player in ipairs(Players:GetPlayers()) do
        if player ~= LocalPlayer and player.TeamColor ~= LocalPlayer.TeamColor then
            local char = player.Character or workspace:FindFirstChild(player.Name)
            if char and char:FindFirstChild("Head") then
                local head = char.Head
                local humanoid = char:FindFirstChildOfClass("Humanoid")
                
                if humanoid and humanoid.Health > 0 then
                    local screenPos, onScreen = Camera:WorldToScreenPoint(head.Position)
                    if onScreen then
                        local d = (Vector2.new(screenPos.X, screenPos.Y) - center).Magnitude
                        if d < dist then
                            dist = d
                            closest = head
                        end
                    end
                end
            end
        end
    end
    return closest
end

UserInputService.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton2 then
        IsAiming = true
    end
end)

UserInputService.InputEnded:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton2 then
        IsAiming = false
    end
end)

RunService.RenderStepped:Connect(function()
    FOVCircle.Position = GetScreenCenter()
    
    if IsAiming then
        local targetHead = GetClosestPlayer()
        if targetHead then
            local targetCFrame = CFrame.new(Camera.CFrame.Position, targetHead.Position)
            Camera.CFrame = targetCFrame
        end
    end
end)

Features & Information

Rage Instant Lock – Instantly snaps your camera directly to the target's head with zero smoothing or delay the moment the keybind is pressed. Team Check – Automatically filters player teams, ensuring the script only locks onto enemies while completely ignoring your teammates. Dynamic FOV Circle – A visible overlay circle at the center of your screen that dynamically adjusts to your resolution, showing the exact area where targets are acquired. Closest to Crosshair Selection – Advanced pixel-distance calculation that scans the map in real-time and locks onto the enemy closest to your center cursor. Alive Check – Built-in health validation that drops the lock instantly once a targeted player is eliminated. No-GUI Design – Clean, lightweight, and completely background-optimized script without any annoying menus or cluttered windows.
#aimbot#Good#OP

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts