Universal Script ๐Ÿ“Œ
2.5k Views
60 Executions

Held Item Display 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 = item name display shows the name of the tool youโ€™re currently holding in a small gui - draggable (works on mobile) - live update when you equip/unequip tools - toggle buttons to show/hide text made this so I could see what Iโ€™m holding without opening my backpack client-side

Updates

  1. Script edited: Create script

View Raw
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local backpack = player:WaitForChild("Backpack")

-- Create Item Name 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.7, 0, 0.7, 0)
frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
frame.BackgroundTransparency = 0.3
frame.Active = true
frame.Draggable = true
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 = "Holding: None"
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)


Comments

1
Log in to join the conversation. Login
canjohn509's profile picture
canjohn5092 years ago(edited)

Pretty Useful

3

More universal scripts

See all
Universal Script ๐Ÿ“Œ
10.3k
282
Bumped 1 hour ago
High Qualityย Offering
Universal Script ๐Ÿ“Œ
8.4k
32.8k
Bumped 2 hours ago
Key System
Universal Script ๐Ÿ“Œ
1.4k
5.9k
Bumped 2 hours ago
Script hub
22.0k
4.3k
Bumped 3 hours ago
Key System
Paid
High Qualityย Offering
Universal Script ๐Ÿ“Œ
1.1k
2.2k
Bumped 3 hours ago
Universal Script ๐Ÿ“Œ
1.6k
6.0k
Bumped 3 hours ago
Script hub
164.7k
567.4k
Bumped 7 hours ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub OP SCRIPT