Auto use tools
Key RequiredUniversal

Auto use tools

Universal ScriptYeah_yeahYeah_yeah 1.1K views 640 executesUpdated Jun 17, 2026
Unrated
00
Lua Script•176 lines (3660 chars)
-- LocalScript (StarterPlayerScripts or StarterGui)

if game.CoreGui:FindFirstChild("ToolManagerGUI") then
	game.CoreGui.ToolManagerGUI:Destroy()
end

local Players = game:GetService("Players")
local player = Players.LocalPlayer

local autoEquip = false
local autoUse = false

-- GUI
local gui = Instance.new("ScreenGui")
gui.Name = "ToolManagerGUI"
gui.ResetOnSpawn = false
gui.Parent = game.CoreGui

-- Open Button
local openBtn = Instance.new("TextButton")
openBtn.Size = UDim2.new(0,120,0,40)
openBtn.Position = UDim2.new(0,20,0,20)
openBtn.Text = "Open Menu"
openBtn.Parent = gui
openBtn.Active = true
openBtn.Draggable = true

-- Main Frame
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0,250,0,180)
frame.Position = UDim2.new(0.5,-125,0.5,-90)
frame.BackgroundColor3 = Color3.fromRGB(40,40,40)
frame.Visible = false
frame.Parent = gui
frame.Active = true
frame.Draggable = true

local title = Instance.new("TextLabel")
title.Size = UDim2.new(1,0,0,30)
title.Text = "Tool Manager"
title.BackgroundTransparency = 1
title.TextColor3 = Color3.new(1,1,1)
title.Parent = frame

local closeBtn = Instance.new("TextButton")
closeBtn.Size = UDim2.new(0,30,0,30)
closeBtn.Position = UDim2.new(1,-35,0,0)
closeBtn.Text = "X"
closeBtn.Parent = frame

local equipToggle = Instance.new("TextButton")
equipToggle.Size = UDim2.new(0.9,0,0,40)
equipToggle.Position = UDim2.new(0.05,0,0,50)
equipToggle.Text = "Auto Re-Equip: OFF"
equipToggle.Parent = frame

local useToggle = Instance.new("TextButton")
useToggle.Size = UDim2.new(0.9,0,0,40)
useToggle.Position = UDim2.new(0.05,0,0,100)
useToggle.Text = "Auto Use: OFF"
useToggle.Parent = frame

-- Open/Close
openBtn.MouseButton1Click:Connect(function()
	frame.Visible = true
end)

closeBtn.MouseButton1Click:Connect(function()
	frame.Visible = false
end)

-- Equip Function
local function equipAllTools()
	local char = player.Character
	if not char then return end

	for _,tool in ipairs(player.Backpack:GetChildren()) do
		if tool:IsA("Tool") then
			tool.Parent = char
		end
	end
end

-- Auto Re-Equip Toggle
equipToggle.MouseButton1Click:Connect(function()
	autoEquip = not autoEquip
	equipToggle.Text = "Auto Re-Equip: " .. (autoEquip and "ON" or "OFF")

	if autoEquip then
		equipAllTools()
	end
end)

-- Auto Use Toggle
useToggle.MouseButton1Click:Connect(function()
	autoUse = not autoUse
	useToggle.Text = "Auto Use: " .. (autoUse and "ON" or "OFF")
end)

-- Respawn Handling
local function characterAdded(char)
	task.wait(1)

	if autoEquip then
		equipAllTools()
	end
end

player.CharacterAdded:Connect(characterAdded)

-- Auto Use Loop
task.spawn(function()
	while true do
		task.wait(0.2)

		if autoUse then
			local char = player.Character

			if char then
				for _,tool in ipairs(char:GetChildren()) do
					if tool:IsA("Tool") then
						pcall(function()
							tool:Activate()
						end)
					end
				end
			end
		end
	end
end)

-- Auto Re-Equip Loop
task.spawn(function()
	while true do
		task.wait(2)

		if autoEquip then
			equipAllTools()
		end
	end
end)task.spawn(function()
	while true do
		task.wait(0.1)

		if autoUse then
			local character = player.Character

			if character then
				for _, tool in ipairs(character:GetChildren()) do
					if tool:IsA("Tool") then
						task.spawn(function()
							pcall(function()
								tool:Activate()
							end)
						end)
					end
				end
			end
		end
	end
end)task.spawn(function()
	while true do
		task.wait(1)

		if autoEquip then
			local char = player.Character
			if char then
				for _, tool in ipairs(player.Backpack:GetChildren()) do
					if tool:IsA("Tool") then
						tool.Parent = char
					end
				end
			end
		end
	end
end)

Features & Information

Damn

Community Comments (1)

IamNikolaTeslaIamNikolaTeslaJun 17, 2026

Bro what's these ai 💝🙏

More Scripts for Universal Scripts