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

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

Asked by 4 years ago

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.

0
Have you tried npc:FindFirstChild("Humanoid").DisplayName = " " ? flexiblebanjo 0 — 4y
0
..as I tried that in studio w/ a Drooling Zombie and it removed its display name but kept its model name flexiblebanjo 0 — 4y
0
no didnt work super00rocket 27 — 4y
0
Oh wait yeah it did! thanks! super00rocket 27 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago

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

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! ScriptingNubs 55 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

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

Answer this question