Universal Script šŸ“Œ
3.2k Views
166 Executions

Total Inventory Items GUI

Universal Script šŸ“Œ
ddorredore
ddorredorePublished 10
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

local player = inventory count display shows the total number of items you have in your backpack and equipped in a small gui - draggable (works on mobile) - live update when items are added, removed, or equipped - toggle buttons to show/hide text made this so I could always see how many items I’m carrying client-side

View Raw
local player = game.Players.LocalPlayer
local backpack = player:WaitForChild("Backpack")

-- Create Inventory Count GUI
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = player:WaitForChild("PlayerGui")

local frame = Instance.new("Frame")
frame.Size = UDim2.new(0.25, 0, 0.12, 0)
frame.Position = UDim2.new(0.05, 0, 0.5, 0) -- Adjust position as needed
frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
frame.BackgroundTransparency = 0.3
frame.Active = true
frame.Draggable = true -- Make it moveable
frame.Parent = screenGui

local itemText = Instance.new("TextLabel")
itemText.Size = UDim2.new(1, 0, 0.6, 0)
itemText.Position = UDim2.new(0, 0, 0, 0)
itemText.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
itemText.TextColor3 = Color3.fromRGB(255, 255, 255)
itemText.TextScaled = true
itemText.Text = "Inventory Items: 0"
itemText.Parent = frame

-- Create Show Button
local showButton = Instance.new("TextButton")
showButton.Size = UDim2.new(0.5, 0, 0.4, 0)
showButton.Position = UDim2.new(0, 0, 0.6, 0)
showButton.BackgroundColor3 = Color3.fromRGB(50, 255, 50)
showButton.TextColor3 = Color3.fromRGB(255, 255, 255)
showButton.TextScaled = true
showButton.Text = "Show"
showButton.Parent = frame

-- Create Hide Button
local hideButton = Instance.new("TextButton")
hideButton.Size = UDim2.new(0.5, 0, 0.4, 0)
hideButton.Position = UDim2.new(0.5, 0, 0.6, 0)
hideButton.BackgroundColor3 = Color3.fromRGB(255, 50, 50)


Comments

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

More universal scripts

See all
Universal Script šŸ“Œ
2.5k
13.6k
Bumped 2 minutes ago
Script hub
3.9M
1.5M
Bumped 19 minutes ago

Script hub

Hall of Fame #3

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

Universal Script šŸ“Œ
33
5
Approved 20 minutes ago
Universal Script šŸ“Œ
25
0
Approved 36 minutes ago