Players' team doesn't change in chat

The players’ team definitely gets changed… I’m pretty sure… but when they talk in chat it shows up as their old team color. Other players will show up as the correct team color but just the client will have this issue. Here’s the code:

local players = game:GetService(“Players”)
for _, plr in ipairs(players:GetPlayers()) do
plr.Team = game.Teams.Survivors
end