Auto Aim
Key Required

Auto Aim

The Strongest Battlegrounds*KeySystems*KeySystems 9.3K views 23 executesUpdated Jan 19, 2025
2.5/ 5(4 votes)
2250% Positive
Lua Script•56 lines (2167 chars)
--[[
	WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
]]
local AimbotDistance = 50
local CharacterTilt = false
local Workspace = game:GetService("Workspace")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local function calculateDistance(pos1, pos2)
    return (pos1 - pos2).Magnitude
end
local function getNearestCharacter()
    local closestCharacter = nil
    local shortestDistance = math.huge

    for _, obj in ipairs(character.Parent:GetChildren()) do
        if obj ~= character and obj:FindFirstChild("HumanoidRootPart") and obj:FindFirstChild("Humanoid") then
            local otherRoot = obj.HumanoidRootPart
            local playerRoot = character:FindFirstChild("HumanoidRootPart")
            if playerRoot then
                local distanceToTarget = calculateDistance(playerRoot.Position, otherRoot.Position)
                if distanceToTarget < shortestDistance and distanceToTarget <= AimbotDistance then
                    shortestDistance = distanceToTarget
                    closestCharacter = obj
                end
            end
        end
    end

    return closestCharacter
end
local function aimAtTarget(target)
    local playerRoot = character:FindFirstChild("HumanoidRootPart")
    if playerRoot and target and target:FindFirstChild("HumanoidRootPart") then
        local targetPosition = target.HumanoidRootPart.Position
        local direction
        if CharacterTilt then
            direction = (targetPosition - playerRoot.Position).Unit
        else
            direction = Vector3.new(
                targetPosition.X - playerRoot.Position.X,
                0,
                targetPosition.Z - playerRoot.Position.Z
            ).Unit
        end
        playerRoot.CFrame = CFrame.new(playerRoot.Position, playerRoot.Position + direction)
    end
end
RunService.RenderStepped:Connect(function()
    local nearestCharacter = getNearestCharacter()
    if nearestCharacter then
        aimAtTarget(nearestCharacter)
    end
end)

Features & Information

- Open-source

Community Comments (4)

*KeySystems*KeySystemsJan 19, 2025(edited)

The settings are in the script, stop disliking my scripts.

BigBlue_ScripterBigBlue_ScripterJan 19, 2025(edited)

@Keysystems how to change keybind

BigBlue_ScripterBigBlue_ScripterJan 19, 2025(edited)

which key bruh

BigBlue_ScripterBigBlue_ScripterJan 19, 2025(edited)

oh nah man that's so bad script

More Scripts for The Strongest Battlegrounds