Why won't my character's display name be hidden?

Players.PlayerAdded:Connect(function(Player)
	Player.NameDisplayDistance = 0
end)

I’ve tried other methods such as using starterhumanoid, but all lead to the same thing. My display name can still be seen:

Screenshot 2024-12-28 185400

I’m doing this in roblox studio by the way if that changes anything. And this screenshot was taken by switching from client to server.

Why don’t you just set your players’ display names to nothing instead?

Like this?

Player.DisplayName = “”

?

1 Like

What does it like the code of player?

The current thread cannot set ‘Player’s display name’ (lacking capability WritePlayer)

1 Like

What do you mean???

What do you know about the code? Player display

i don’t know what you’re saying cowboy

I’m asking about script that player display write

oh alright i’ll send it in a second

Oh my bad I meant Humanoid.DisplayName sorry!

And I idea if you send it will definitely not work about the script

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(Player)
	Player.NameDisplayDistance = 0
end)

This is all the code

Maybe this will be right but try it to work

I already did but it fails man I’m not sure.

Just did that, no error but it just changes my displayname to my username.

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Character)
	Character.Humanoid.DisplayName = ""
	end)
end)

-- Place this script in a LocalScript or a Script, depending on where you want to execute it.

game.Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)
        -- Ensure the character has loaded before proceeding
        wait(1)

        -- Find the Humanoid and Billboards
        local humanoid = character:FindFirstChild("Humanoid")
        if humanoid then
            -- Find all existing name tags (BillboardGuis)
            for _, child in pairs(character:GetChildren()) do
                if child:IsA("BillboardGui") then
                    -- Remove or disable the name tag
                    child.Enabled = false
                end
            end
        end
    end)
end)

1 Like

Is this chat GPT code or from you

Not saying I’ve never had problems with this… but, NameDisplayDistance is on the Humanoid.

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(Player)
    Player.CharacterAdded:Connect(function(Character)
        local humanoid = Character:WaitForChild("Humanoid")
        humanoid.NameDisplayDistance = 0
    end)
end)

But try this I sent a new script if it worked with you