Im making a game which has a maze and it would spoil the intensity of knowing what is behind a certain wall so i want to have the health bar and name hidden please help i cant find out how to hide it.
COMMUNITY QUESTION
How can you make zombies have their name and health not appear through walls?
1 answer
Hi...you will need to use a property call NameDisplayDistance and HealthDisplayDistance
game.Players.PlayerAdded:connect(function(player)--We are using the player added event and namming this function player
player.CharacterAdded:connect(function(character)-- Now were adding the character
local hum = character:WaitForChild("Humanoid") --now we will wait for child humanoid
hum.NameDisplayDistance = 0 --sets these 2 propertys to 0 that will make it where you cant see it
hum.HealthDisplayDistance = 0
end)
end)
Hope this helped let me know if it did..If it did and accepted answer would be appreciated
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
I tried this but i wanted it so you will be able to see the health display and name from a distance, but just not through walls, since then you will know what is over the wall in the maze
I'm not sure if u can it's very complicated