
2.0k Views
111 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Basically That's it
local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
-- Function to create UI button
local function createButton()
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "ToolHighlighter"
screenGui.ResetOnSpawn = false
screenGui.Parent = playerGui
local toggleButton = Instance.new("TextButton")
toggleButton.AnchorPoint = Vector2.new(0, 1)
toggleButton.Position = UDim2.new(0, 10, 1, -10)
toggleButton.AutomaticSize = Enum.AutomaticSize.X
toggleButton.Size = UDim2.new(0, 0, 0, 40)
toggleButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
toggleButton.BorderColor3 = Color3.fromRGB(255, 0, 0)
toggleButton.BorderSizePixel = 3
toggleButton.Text = "Highlight Tools"
toggleButton.TextColor3 = Color3.new(1, 1, 1)
toggleButton.Font = Enum.Font.SourceSansBold
toggleButton.TextSize = 20
toggleButton.Parent = screenGui
return toggleButton, screenGui
end
-- Function to create name label above a part
local function createLabel(tool, adornee)
local billboard = Instance.new("BillboardGui")
billboard.Name = "ToolHighlight"
billboard.Size = UDim2.new(0, 100, 0, 50)
billboard.Adornee = adornee
billboard.AlwaysOnTop = true
billboard.Parent = tool
local label = Instance.new("TextLabel")
label.Size = UDim2.new(1, 0, 1, 0)
label.BackgroundTransparency = 1
label.Text = tool.Name
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!








