Universal Script 📌
8.5k Views
1.7k Executions

Player Inventory Checker

Universal 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

Checks all items a player has. Universal. Open source. (Feel free to skid) Updates every second. And yes, made with ChatGPT. (am too lazy to program rn)

Updates

  1. Script edited: Create script

View Raw
if not game:GetService("RunService"):IsClient() then return end -- Ensure it's running on the client

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")

local function getPlayerInventory(player)
    local inventory = {}

    -- Check equipped tools
    if player.Character then
        for _, item in pairs(player.Character:GetChildren()) do
            if item:IsA("Tool") then
                table.insert(inventory, item.Name)
            end
        end
    end

    -- Check backpack tools
    local backpack = player:FindFirstChild("Backpack")
    if backpack then
        for _, item in pairs(backpack:GetChildren()) do
            if item:IsA("Tool") then
                table.insert(inventory, item.Name)
            end
        end
    end

    if #inventory == 0 then
        table.insert(inventory, "No Items")
    end

    return inventory
end

local function createOverheadGui(player)
    if player == Players.LocalPlayer then return end -- Don't track yourself

    local character = player.Character
    if not character then return end



Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Universal Script 📌
57.3k
270.0k
Bumped 13 minutes ago
Key System
Script hub
2.2M
2.5M
Bumped 4 hours ago
Key System
Script hub
4.0M
2.7M
Bumped 4 hours ago

Script hub

Hall of Fame #5

KeylessVerified script badge[KEYLESS] Moondiety Script | 30+ supported Games

Script hub
552
2.5k
Bumped 5 hours ago
Script hub
7.8k
70.2k
Bumped 5 hours ago