Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to hide player names?

Asked by 9 years ago

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

0
Depends, do you want this to be for all players, or just on player in particular that can hide their name? M39a9am3R 3210 — 9y
0
I eddited my answer with an attempt NinjoOnline 1146 — 9y
3
I'll have to check it out, but I think you can edit the property in StarterPlayer. M39a9am3R 3210 — 9y
0
oh yeah you can, thanks :) NinjoOnline 1146 — 9y

2 answers

Log in to vote
1
Answered by 9 years ago

There's a property in the Humanoid named NameOcclusion.

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

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. Redbullusa 1580 — 9y
Ad
Log in to vote
0
Answered by 8 years ago

Use displaydistancetype.

Humanoid.DisplayDistanceType="None"

Answer this question