Universal Script 📌
15.1k Views
66 Executions

Tool counter

Universal Script 📌
cheesedudecheese5
cheesedudecheese5First script
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Got this off a bot from a exploit server from discord and it only counts tools

Updates

  1. Script edited: Create script

View Raw
local Players = game:GetService("Players")
local StarterGui = game:GetService("StarterGui")
local LocalPlayer = Players.LocalPlayer

-- Function to count tools and send a notification
local function notifyToolCount()
    local toolCount = 0

    for _, item in ipairs(LocalPlayer.Backpack:GetChildren()) do
        if item:IsA("Tool") then
            toolCount = toolCount + 1
        end
    end

    StarterGui:SetCore("SendNotification", {
        Title = "Tool Count Update",
        Text = "You have " .. toolCount .. " tools in your backpack.",
        Duration = 5
    })
end

-- Notify the tool count when the script is executed
notifyToolCount()


Comments

2
Log in to join the conversation. Login
cheesedudecheese5's profile picture
cheesedudecheese5Uploader2 years ago(edited)

Exactly

1
NDLgen's profile picture
NDLgen2 years ago(edited)

frieza

1