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

Hiding Players Name & Health?

Asked by 10 years ago

I have a zombie but you can see his health and name around a corner how can make it so his health and name is invisible?? Plz answer anything helps.

2 answers

Log in to vote
2
Answered by
AxeOfMen 434 Moderation Voter
10 years ago

To hide the name and health of a model containing a Humanoid, do the following:

  • Rename the part named "Head" to something else like "TrueHead"
  • Add a new part to the model and name it "Head"
  • Set the transparency of the new "Head" to 1
Ad
Log in to vote
0
Answered by 10 years ago

Please provide explanation with your answers. Simply posting code does not spread knowledge of integral scripting processes which helps people understand the logic and reasoning behind your answer.

I made the head invisible to hide the health and name. Created a falsehead and welded it to the torso.

Game.Players.PlayerAdded:connect(function(Player)
    Player.CharacterAdded:conect(function(Character)
        local Head = Character.Head
        local FalseHead = Head:Clone()
        FalseHead.Name = "False Head"
        Head.Transparency = 1
        FalseHead.Parent = Character
        local Weld = Instance.new("Weld",FalseHead)
            Weld.Part0 = FalseHead
            Weld.Part1 = Character.Torso
    end)
end)

Answer this question