nothing
Key RequiredUniversal

nothing

Universal ScriptQyebutdwoshiQyebutdwoshi 3.9K views 24 executesUpdated Jan 22, 2025
5.0/ 5(1 votes)
10100% Positive
Lua Script•183 lines (6097 chars)
-- auto click tools v2
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "ToolActivationGui"
screenGui.ResetOnSpawn = false
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

local draggableFrame = Instance.new("Frame")
draggableFrame.Name = "DraggableFrame"
draggableFrame.Size = UDim2.new(0, 300, 0, 80)
draggableFrame.Position = UDim2.new(0.5, -150, 0.5, -40)
draggableFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
draggableFrame.BorderSizePixel = 0
draggableFrame.Parent = screenGui

local title = Instance.new("TextLabel")
title.Text = "Tool Activation"
title.Size = UDim2.new(1, 0, 0, 20)
title.Position = UDim2.new(0, 0, -0.25, 0)
title.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
title.TextColor3 = Color3.fromRGB(255, 255, 255)
title.Font = Enum.Font.SourceSansBold
title.TextSize = 14
title.Parent = draggableFrame

local continuousButton = Instance.new("TextButton")
continuousButton.Text = "Continuous Activation"
continuousButton.Size = UDim2.new(0.5, 0, 0.5, 0)
continuousButton.Position = UDim2.new(0, 0, 0.25, 0)
continuousButton.BackgroundColor3 = Color3.fromRGB(50, 200, 50)
continuousButton.TextColor3 = Color3.fromRGB(255, 255, 255)
continuousButton.Font = Enum.Font.SourceSansBold
continuousButton.TextSize = 12
continuousButton.Parent = draggableFrame

local equipButton = Instance.new("TextButton")
equipButton.Text = "Equip Next Tool"
equipButton.Size = UDim2.new(0.5, 0, 0.5, 0)
equipButton.Position = UDim2.new(0.5, 0, 0.25, 0)
equipButton.BackgroundColor3 = Color3.fromRGB(50, 150, 200)
equipButton.TextColor3 = Color3.fromRGB(255, 255, 255)
equipButton.Font = Enum.Font.SourceSansBold
equipButton.TextSize = 12
equipButton.Parent = draggableFrame

local isActivating = false

local function activateTool(tool)
    if tool:IsA("Tool") then
        local button = tool:FindFirstChildWhichIsA("TextButton") or tool:FindFirstChildWhichIsA("ImageButton")
        if button then
            fireclickdetector(button)
        else
            tool:Activate()
        end
    end
end

local function activateAllTools()
    local character = game.Players.LocalPlayer.Character
    if not character then return end
    for _, tool in ipairs(character:GetChildren()) do
        activateTool(tool)
    end
end

local function startActivation()
    isActivating = true
    while isActivating and wait(0.5) do
        activateAllTools()
    end
end

continuousButton.MouseButton1Click:Connect(function()
    if isActivating then
        isActivating = false
        continuousButton.Text = "Continuous Activation"
    else
        isActivating = true
        task.spawn(startActivation)
        continuousButton.Text = "Stop Activation"
    end
end)

local lastEquippedToolIndex = 0
local function equipNextTool()
    local player = game.Players.LocalPlayer
    local backpack = player:WaitForChild("Backpack")
    for i = 1, #backpack:GetChildren() do
        local tool = backpack:GetChildren()[i]
        if tool:IsA("Tool") and i > lastEquippedToolIndex then
            tool.Parent = player.Character
            lastEquippedToolIndex = i
            return
        end
    end
    lastEquippedToolIndex = 0
end

equipButton.MouseButton1Click:Connect(function()
    equipNextTool()
end)

-- aughhhh
local function inspectToolScripts(tool)
    for _, script in ipairs(tool:GetChildren()) do
        if script:IsA("LocalScript") then
            local source = script.Source
            if source:find("RemoteEvent") or source:find("FireServer") then
                print("Tool uses RemoteEvent:", tool.Name)
                -- aughhh
                local remoteEvent = source:match("RemoteEvent%.(%w+)")
                if remoteEvent then
                    print("RemoteEvent name:", remoteEvent)
                    return remoteEvent
                end
            end
        end
    end
    return nil
end

local function startContinuousRemoteActivation(tool, eventName)
    local remoteEvent = game.ReplicatedStorage:FindFirstChild(eventName)
    if remoteEvent then
        isActivating = true
        while isActivating and wait(0.5) do
            remoteEvent:FireServer()
        end
    else
        print("RemoteEvent not found:", eventName)
    end
end

-- aughh
local function checkCurrentTool()
    local player = game.Players.LocalPlayer
    local character = player.Character
    if character then
        for _, tool in ipairs(character:GetChildren()) do
            if tool:IsA("Tool") then
                local eventName = inspectToolScripts(tool)
                if eventName then
                    continuousButton.MouseButton1Click:Connect(function()
                        if isActivating then
                            isActivating = false
                            continuousButton.Text = "Continuous Activation"
                        else
                            isActivating = true
                            task.spawn(startContinuousRemoteActivation, tool, eventName)
                            continuousButton.Text = "Stop Activation"
                        end
                    end)
                end
            end
        end
    end
end

checkCurrentTool()

-- augh
local dragging = false
local dragInput, mousePos, framePos

title.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
        dragging = true
        mousePos = input.Position
        framePos = draggableFrame.Position
        input.Changed:Connect(function()
            if input.UserInputState == Enum.UserInputState.End then
                dragging = false
            end
        end)
    end
end)

game:GetService("UserInputService").InputChanged:Connect(function(input)
    if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
        local delta = input.Position - mousePos
        draggableFrame.Position = UDim2.new(framePos.X.Scale, framePos.X.Offset + delta.X, framePos.Y.Scale, framePos.Y.Offset + delta.Y)
    end
end)

Features & Information

auto click tools v2(its not better than old one), im just saved it

Community Comments (3)

Testing_scriptsTesting_scriptsJan 22, 2025(edited)

How to enable @Qyebutdwoshi

Testing_scriptsTesting_scriptsJan 22, 2025(edited)

Becuse its not working

QyebutdwoshiQyebutdwoshiJan 22, 2025(edited)

u need to equip tool first,it cant work if the tool have button or sth

More Scripts for Universal Scripts