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

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

Asked by 9 years ago

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

Log in to vote
0
Answered by
iSvenDerp 233 Moderation Voter
9 years ago

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

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 zaiff55 5 — 9y
0
I'm not sure if u can it's very complicated iSvenDerp 233 — 9y
Ad

Answer this question