Display Name Scaling

Is it possible to change the Scalizing/TextSize/Size of the Display Name inside of a Humanoid?

I’m currently messing around with Names for players ingame, and I wanted it to be universal so even the player themselves can see their own names. Although the issue is that it’s a tad bit too big, and might tend to look annoying infront of other players screens.

Screen Shot 2023-08-31 at 12.52.55 PM

Afaik nametags are not customizable, however you can create your own. You will first need to create a local script in StarterPlayerScripts that does the following:

local Players = game:GetService("Players")

-- First we will create a function that creates the nametag and customizes it:
local function createNametag(player)
    local character = player.Character
    if not character then
        return
    end
    
-- This creates a new BillboardGUI which is essential, the size can be customized to whatever you want.
    local head = character:WaitForChild("Head")
    local billboardGui = Instance.new("BillboardGui")
    billboardGui.Adornee = head
    billboardGui.Size = UDim2.new(0, 100, 0, 30)
    billboardGui.StudsOffset = Vector3.new(0, 2, 0)
    billboardGui.Parent = head
    
-- The size should only be adjusted through the BillbaordGUI, however any properties
-- that you want to change can be changed here:
    local nameLabel = Instance.new("TextLabel")
    nameLabel.BackgroundTransparency = 1
    nameLabel.Size = UDim2.new(1, 0, 1, 0)
    nameLabel.Text = player.Name
    nameLabel.Font = Enum.Font.SourceSansBold
    nameLabel.TextSize = 14
    nameLabel.TextColor3 = Color3.new(1, 1, 1)
    nameLabel.Parent = billboardGui
end -- End of function

-- Gives every current player the custom nametag:
for _, player in ipairs(Players:GetPlayers()) do
    createNametag(player)
end

-- Gives every new player that joins the nametag:
Players.PlayerAdded:Connect(function(player)
    createNametag(player)
end)

Ah I see, I had a general idea of just making my own but kept having issues so I was going to stick with what I had. Thank you very much, i’ll be sure to learn off of this.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.