local function highlightPart(part) if part:FindFirstChild("Highlight") then return end local highlight = Instance.new("Highlight") highlight.Name = "Highlight" highlight.Adornee = part highlight.FillColor = Color3.fromRGB(255, 255, 0) highlight.OutlineColor = Color3.fromRGB(255, 0, 0) highlight.Parent = part if not part:FindFirstChild("BillboardGui") then local billboard = Instance.new("BillboardGui") billboard.Name = "NameTag" billboard.Size = UDim2.new(0, 200, 0, 50) billboard.StudsOffset = Vector3.new(0, 2, 0) billboard.AlwaysOnTop = true billboard.Parent = part local textLabel = Instance.new("TextLabel") textLabel.Size = UDim2.new(1, 0, 1, 0) textLabel.BackgroundTransparency = 1 textLabel.Text = part.Name textLabel.TextColor3 = Color3.fromRGB(255, 255, 255) textLabel.TextStrokeTransparency = 0 textLabel.TextScaled = true textLabel.Parent = billboard end end local function highlightAllParts() for _, obj in pairs(workspace:GetDescendants()) do if obj:IsA("Part") then highlightPart(obj) end end end highlightAllParts() workspace.DescendantAdded:Connect(function(obj) if obj:IsA("Part") then highlightPart(obj) end end)