Universal Script 📌
8.4k Views
1.5k 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
Script hub
176.7k
1.6M
Bumped 1 hour ago
Key System
Script hub
46.5k
11.5k
Bumped 4 hours ago
Key System
Paid
Script hub
2.5M
798.8k
Bumped 5 hours ago
Key System

Script hub

#9 today

Verified script badgeLumin Hub | #1 | Insta Steal