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

Instand of changing the Team try to change the TeamColor:

plr.TeamColor = BrickColor.new("Bright red") -- Ur team color

Are you executing this code on the server or the client?

I’ve done both the teamcolor change and it’s a server script. It works now though but only because I switched to legacy chat system rather than the new one. I think it’s just a bug with the new chat system.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.