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

How to make someones health gui invisible?

Asked by
wjs3456 90
10 years ago

I would like to have use a script making the nametags/health on all the people on the blue team not visible. Here is the script I used.

for i,v in pairs(game.Players:GetPlayers()) do
    if v.TeamColor == BrickColor.new("Bright blue") then   
        v.HealthDisplayDistance = 0
            v.NameDisplayDistance = 0
    end
end

Thanks

0
What is not working about it? Also, is this in a function? SlickPwner 534 — 10y
0
No this is the entire script. It is separate from the main part of the game wjs3456 90 — 10y

Answer this question