Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to hide player names?

Is there a way to remove the players names, without having 50+ lines to code.

local player = game.Players.LocalPlayer

while wait() do
	player.Character.Humanoid.NameDisplayDistance = 0
end

My attempt. Inside LocalScript in StarterPack

4 comments

0

Depends, do you want this to be for all players, or just on player in particular that can hide their name?

0

I eddited my answer with an attempt

3

I'll have to check it out, but I think you can edit the property in StarterPlayer.

0

oh yeah you can, thanks :)

2 answers

✓ Accepted answer

There's a property in the Humanoid named NameOcclusion.

local player = game.Players.LocalPlayer
while wait() do
    player.Character.Humanoid.NameOcclusion = "NoOcclusion"
end

1 comment

0

"NoOcclusion" means that the character's name will not be hidden. Also, the NameOcclusion property means that the name will be hidden if it is behind objects. I believe the asker wants to know how to hide the name in general.

Use displaydistancetype.

Humanoid.DisplayDistanceType="None"

This discussion is preserved as it was. New answers, comments, and votes are closed.