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

2 comments

0

What is not working about it? Also, is this in a function?

0

No this is the entire script. It is separate from the main part of the game