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

How to make an npc WITH a name have no VISIBLE name?

I have tried setting the npc's display name to nothing by code, but nothing i do seemed to work. i need to keep its name so i can define it by code but i don't want players seeing that low quality name title above its head.

4 comments

0

Have you tried npc:FindFirstChild("Humanoid").DisplayName = " " ?

0

..as I tried that in studio w/ a Drooling Zombie and it removed its display name but kept its model name

0

no didnt work

0

Oh wait yeah it did! thanks!

2 answers

Maybe setting it's name's viewing distance to 0 might work for you!

https://developer.roblox.com/en-us/api-reference/property/Humanoid/NameDisplayDistance

local humanoid = game.Workspace:FindFirstChild("npc").Humanoid -- make "npc" into whatever the model is called :D
humanoid.NameDisplayDistance = 0

1 comment

0

I also suggest using this method instead of setting the name to nil or anything along those lines, so it's easier to script it later!

Solved by flexiblebanjo in the comments of my question. thanks!

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