Clear all tools
Key RequiredUniversal

Clear all tools

Universal ScriptJF4_chillJF4_chill 49 views 113 executesUpdated Jul 16, 2026
Unrated
00
Lua Scriptโ€ข177 lines (5941 chars)
-- clear all item in inventory 

if not game:IsLoaded() then game.Loaded:Wait() end

local plr = game.Players.LocalPlayer
local gui = Instance.new("ScreenGui")
gui.Name = "ClearInv"
gui.Parent = game.CoreGui

local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 190, 0, 110)
frame.Position = UDim2.new(0.5, -95, 0.5, -55)
frame.BackgroundColor3 = Color3.fromRGB(18, 18, 32)
frame.BorderSizePixel = 1
frame.BorderColor3 = Color3.fromRGB(180, 40, 40)
frame.Parent = gui
Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 8)

local top = Instance.new("Frame")
top.Size = UDim2.new(1, 0, 0, 28)
top.BackgroundColor3 = Color3.fromRGB(28, 28, 45)
top.Parent = frame
Instance.new("UICorner", top).CornerRadius = UDim.new(0, 8)

local judul = Instance.new("TextLabel")
judul.Size = UDim2.new(1, -55, 1, 0)
judul.Position = UDim2.new(0, 8, 0, 0)
judul.BackgroundTransparency = 1
judul.Text = "๐Ÿ—‘๏ธ clear item"
judul.TextColor3 = Color3.fromRGB(255, 200, 200)
judul.TextSize = 13
judul.Font = Enum.Font.GothamBold
judul.TextXAlignment = Enum.TextXAlignment.Left
judul.Parent = top

local close = Instance.new("TextButton")
close.Size = UDim2.new(0, 22, 0, 22)
close.Position = UDim2.new(1, -26, 0.5, -11)
close.BackgroundColor3 = Color3.fromRGB(180, 40, 40)
close.Text = "โœ•"
close.TextColor3 = Color3.fromRGB(255, 255, 255)
close.TextSize = 13
close.Font = Enum.Font.GothamBold
close.Parent = top
Instance.new("UICorner", close).CornerRadius = UDim.new(0, 4)
close.MouseButton1Click:Connect(function() gui:Destroy() end)

local min = Instance.new("TextButton")
min.Size = UDim2.new(0, 22, 0, 22)
min.Position = UDim2.new(1, -50, 0.5, -11)
min.BackgroundColor3 = Color3.fromRGB(50, 50, 70)
min.Text = "โ”€"
min.TextColor3 = Color3.fromRGB(255, 255, 255)
min.TextSize = 16
min.Font = Enum.Font.GothamBold
min.Parent = top
Instance.new("UICorner", min).CornerRadius = UDim.new(0, 4)

local minimized = false
local toggle = nil

min.MouseButton1Click:Connect(function()
    minimized = not minimized
    if minimized then
        frame.Visible = false
        if not toggle then
            toggle = Instance.new("TextButton")
            toggle.Size = UDim2.new(0, 36, 0, 36)
            toggle.Position = UDim2.new(0, 8, 0, 38)
            toggle.BackgroundColor3 = Color3.fromRGB(28, 28, 45)
            toggle.Text = "๐Ÿ—‘๏ธ"
            toggle.TextColor3 = Color3.fromRGB(255, 255, 255)
            toggle.TextSize = 18
            toggle.Font = Enum.Font.GothamBold
            toggle.Parent = gui
            Instance.new("UICorner", toggle).CornerRadius = UDim.new(1, 0)
            toggle.MouseButton1Click:Connect(function()
                frame.Visible = true
                minimized = false
                toggle.Visible = false
            end)
        end
        toggle.Visible = true
    else
        frame.Visible = true
        if toggle then toggle.Visible = false end
    end
end)

local btn = Instance.new("TextButton")
btn.Size = UDim2.new(0.8, 0, 0, 32)
btn.Position = UDim2.new(0.1, 0, 0, 38)
btn.BackgroundColor3 = Color3.fromRGB(180, 40, 40)
btn.Text = "๐Ÿงน clear all item"
btn.TextColor3 = Color3.fromRGB(255, 255, 255)
btn.TextSize = 12
btn.Font = Enum.Font.GothamBold
btn.Parent = frame
Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 6)

local status = Instance.new("TextLabel")
status.Size = UDim2.new(0.9, 0, 0, 16)
status.Position = UDim2.new(0.05, 0, 0, 78)
status.BackgroundTransparency = 1
status.Text = "ready"
status.TextColor3 = Color3.fromRGB(180, 180, 200)
status.TextSize = 9
status.Font = Enum.Font.Gotham
status.TextXAlignment = Enum.TextXAlignment.Center
status.Parent = frame

local function clear()
    local total = 0
    local back = plr:FindFirstChild("Backpack")
    if back then
        for _, v in pairs(back:GetChildren()) do
            if v:IsA("Tool") then v:Destroy(); total = total + 1 end
        end
    end
    local char = plr.Character
    if char then
        for _, v in pairs(char:GetChildren()) do
            if v:IsA("Tool") then v:Destroy(); total = total + 1 end
        end
    end
    return total
end

btn.MouseButton1Click:Connect(function()
    btn.Text = "โณ..."
    btn.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
    local ok, jml = pcall(clear)
    if ok then
        status.Text = "โœ“ " .. jml .. " clear item"
        status.TextColor3 = Color3.fromRGB(0, 255, 100)
        btn.Text = "โœ“ Finished"
        btn.BackgroundColor3 = Color3.fromRGB(0, 160, 70)
        task.wait(1.5)
        btn.Text = "๐Ÿงน clear"
        btn.BackgroundColor3 = Color3.fromRGB(180, 40, 40)
        task.wait(2)
        status.Text = "ready"
        status.TextColor3 = Color3.fromRGB(180, 180, 200)
    else
        status.Text = "โŒ error"
        status.TextColor3 = Color3.fromRGB(255, 80, 80)
        btn.Text = "๐Ÿงน clear"
        btn.BackgroundColor3 = Color3.fromRGB(180, 40, 40)
        task.wait(2)
        status.Text = "ready"
        status.TextColor3 = Color3.fromRGB(180, 180, 200)
    end
end)

local drag = {active = false, start = nil, pos = nil}
top.InputBegan:Connect(function(i)
    if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then
        drag.active = true
        drag.start = i.Position
        drag.pos = frame.Position
        i.Changed:Connect(function()
            if i.UserInputState == Enum.UserInputState.End then drag.active = false end
        end)
    end
end)
game:GetService("UserInputService").InputChanged:Connect(function(i)
    if drag.active and (i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch) then
        local delta = i.Position - drag.start
        frame.Position = UDim2.new(drag.pos.X.Scale, drag.pos.X.Offset + delta.X, drag.pos.Y.Scale, drag.pos.Y.Offset + delta.Y)
    end
end)

game:GetService("StarterGui"):SetCore("SendNotification", {
    Title = "Clear Inv",
    Text = "clear the item",
    Duration = 2
})

Features & Information

Delete all items in inventory
#Clear item

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts