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

How can you make zombies have their name and health not appear through walls?

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.

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

2 comments

0

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

0

I'm not sure if u can it's very complicated

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