local Players = game:GetService("Players") local localPlayer = Players.LocalPlayer -- Function to apply highlight and name tag local function highlightCharacter(player) if player == localPlayer then return end -- Skip yourself (optional) player.CharacterAdded:Connect(function(character) local head = character:WaitForChild("Head", 10) if not head then return end -- Clean up old visuals if any if character:FindFirstChild("PlayerHighlight") then character.PlayerHighlight:Destroy() end if character:FindFirstChild("NameTagGui") then character.NameTagGui:Destroy() end -- Create highlight local highlight = Instance.new("Highlight") highlight.Name = "PlayerHighlight" highlight.FillColor = Color3.fromRGB(255, 255, 0) highlight.OutlineColor = Color3.fromRGB(0, 0, 0) highlight.FillTransparency = 0.5 highlight.OutlineTransparency = 0 highlight.Adornee = character highlight.Parent = character -- Create name tag local billboard = Instance.new("BillboardGui") billboard.Name = "NameTagGui" billboard.Adornee = head billboard.Size = UDim2.new(0, 200, 0, 50) billboard.StudsOffset = Vector3.new(0, 3, 0) billboard.AlwaysOnTop = true billboard.Parent = character local nameLabel = Instance.new("TextLabel") nameLabel.Size = UDim2.new(1, 0, 1, 0) nameLabel.BackgroundTransparency = 1 nameLabel.Text = player.DisplayName nameLabel.TextColor3 = Color3.new(1, 1, 1) nameLabel.TextStrokeColor3 = Color3.new(0, 0, 0) nameLabel.TextStrokeTransparency = 0 nameLabel.TextScaled = true nameLabel.Font = Enum.Font.LuckiestGuy nameLabel.Parent = billboard end) -- Apply visuals immediately if the character already exists if player.Character then task.defer(function() local character = player.Character local head = character:FindFirstChild("Head") if not head then return end if character:FindFirstChild("PlayerHighlight") then character.PlayerHighlight:Destroy() end if character:FindFirstChild("NameTagGui") then character.NameTagGui:Destroy() end local highlight = Instance.new("Highlight") highlight.Name = "PlayerHighlight" highlight.FillColor = Color3.fromRGB(255, 255, 0) highlight.OutlineColor = Color3.fromRGB(0, 0, 0) highlight.FillTransparency = 0.5 highlight.OutlineTransparency = 0 highlight.Adornee = character highlight.Parent = character local billboard = Instance.new("BillboardGui") billboard.Name = "NameTagGui" billboard.Adornee = head billboard.Size = UDim2.new(0, 200, 0, 50) billboard.StudsOffset = Vector3.new(0, 3, 0) billboard.AlwaysOnTop = true billboard.Parent = character local nameLabel = Instance.new("TextLabel") nameLabel.Size = UDim2.new(1, 0, 1, 0) nameLabel.BackgroundTransparency = 1 nameLabel.Text = player.DisplayName nameLabel.TextColor3 = Color3.new(0, 0, 0) nameLabel.TextStrokeColor3 = Color3.new(0, 0, 0) nameLabel.TextStrokeTransparency = 0 nameLabel.TextScaled = true nameLabel.Font = Enum.Font.LuckiestGuy nameLabel.Parent = billboard end) end end -- Apply visuals to all current players for _, player in ipairs(Players:GetPlayers()) do highlightCharacter(player) end -- Apply to new players Players.PlayerAdded:Connect(highlightCharacter)