Bad Combat Bot
Key Required

Bad Combat Bot

The Strongest BattlegroundsIrdkIrdk 30.2K views 292 executesUpdated Jan 7, 2025
5.0/ 5(3 votes)
30100% Positive
Lua Script•116 lines (3977 chars)
--At Line 98, please separate the two different scripts or else might not work.

local Players = game:GetService("Players")
local VirtualInputManager = game:GetService("VirtualInputManager")
local LocalPlayer = Players.LocalPlayer
local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
local attacking = false
local lastAttackTime = 0
local attackCooldown = 0.5

local function getNearestPlayer()
    local nearestPlayer, shortestDistance = nil, math.huge
    for _, player in ipairs(Players:GetPlayers()) do
        if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
            local distance = (humanoidRootPart.Position - player.Character.HumanoidRootPart.Position).Magnitude
            if distance < shortestDistance then
                shortestDistance = distance
                nearestPlayer = player
            end
        end
    end
    return nearestPlayer
end

local function isBlocking(target)
    local humanoid = target.Parent:FindFirstChildOfClass("Humanoid")
    if humanoid then
        for _, anim in ipairs(humanoid:GetPlayingAnimationTracks()) do
            if anim.Name:lower():find("block") then
                return true
            end
        end
    end
    return false
end

-- Auto m1
local function attack()
    attacking = true
    for i = 1, 4 do
        if not attacking then break end
        VirtualInputManager:SendMouseButtonEvent(0, 0, 0, true, game, 0)
        task.wait(0.05 + math.random() * 0.05)
        VirtualInputManager:SendMouseButtonEvent(0, 0, 0, false, game, 0)
        task.wait(0.1 + math.random() * 0.1)
    end
    attacking = false
end

-- Auto Dash
local function onDamageTaken()
    if not attacking then
        VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.Q, false, game)
        task.wait(0.1)
        VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.Q, false, game)
    end
end

local function canAttack(target)
    local rayOrigin = humanoidRootPart.Position
    local rayDirection = (target.Position - rayOrigin).Unit * 5
    local ray = Ray.new(rayOrigin, rayDirection)
    local hitPart, _ = workspace:FindPartOnRay(ray, character, false, true)
    return hitPart and hitPart.Parent == target.Parent
end

local function mainLoop()
    while true do
        local nearestPlayer = getNearestPlayer()
        if nearestPlayer and nearestPlayer.Character then
            local target = nearestPlayer.Character:WaitForChild("HumanoidRootPart")
            local distance = (humanoidRootPart.Position - target.Position).Magnitude
            local currentTime = tick()

            if distance <= 7 and not attacking and not isBlocking(target) and currentTime - lastAttackTime >= attackCooldown and canAttack(target) then
                lastAttackTime = currentTime
                attack()
            end
        end
        task.wait(0.2 + math.random() * 0.2) -- Randomized delay for smoother operation
    end
end

local function setupCharacter(newCharacter)
    character = newCharacter
    humanoidRootPart = character:WaitForChild("HumanoidRootPart")
    local humanoid = character:WaitForChild("Humanoid")
    humanoid.HealthChanged:Connect(onDamageTaken)
end

LocalPlayer.CharacterAdded:Connect(setupCharacter)
setupCharacter(character)

coroutine.wrap(mainLoop)()



    getgenv().Camlock_Settings = {
        Prediction = 0.149,
        AimPart = "HumanoidRootPart",
        Key = "e",
        AutoPrediction = false,
        Notification = true,
        Button = true,
        AntiGroundShots = false,
        UnderGroundResolver = false,

        -- DO NOT TOUCH THIS OR THE CAMLOCK WILL NOT WORK --
        Version = "2.5.1",
        Credits = "space_0999",
        DiscordServer = "discord.gg/SKhamGzTdn"
    }
    
    
    loadstring(game:HttpGet('https://raw.githubusercontent.com/elxocasXD/Trip-Hub/main/Scripts/Cam%20Lock.lua'))()

Features & Information

So its a (bad) manual combat bot, that will auto dash and auto m1. Useful sometimes. [+] Features [+] --Open Sourced-- --Auto M1-- {Will check if any (and all) players are within range and will auto m1} --Auto Dash-- {Once damage is taken, will start to auto dash. (if used well can be really OP) } ~~Coming Soon~~ --Auto Combo-- --Smarter Auto Dash-- --Path Finding-- --Strategic Jumping-- --Skill Prediction-- {Detects what skill the opponent is using will then use (smarter) auto dash and then counter (punish them by using auto combo). --Insight-- {Will use the battle with a certain user to learn how when and where they are most likely to use certain skills, use m1 or block spam} --m1 reset-- --L Saitama main detection-- {Detects if your opponent is using, death counter} and then finally the complete version... --AUTO COMBAT BOT-- [+] Bug fixes [+] --08 Jan 2025: The Key bind before worked incorrectly, couldn't find the problem so ended up remove key bind system as a whole-- I really want to take this project forward because I can really see this having potential as one of the greatest scripts. And Ofc my main goal is to make this utterly unstoppable. And feel free to add your own sugestions, or just out right make it better. Just please credit me :) discord: irdk_scriptblox Cam Lock made by: space_0999
#Combat bot#Strongest battlegrounds#battlegrounds#Auto Farm#Aimbot

Community Comments (4)

1nfinity1nfinityJan 7, 2025(edited)

you know I see this going somewhere keep up the hard work

IrdkIrdkJan 7, 2025(edited)

@Shadowy, thank you for the support :)

hajun9508hajun9508Jan 22, 2025(edited)

Is it possible to reset m1 on mobile? I am Delta.

danbeo1802danbeo1802Feb 8, 2025(edited)

WE NEED UPDATE M1 RESET FASTTT but does it work for solara o_0?

More Scripts for The Strongest Battlegrounds