for _, player in pairs(game.Players:GetPlayers()) do local teamthing = player.TeamColor local sanitizedMessage = teamthing .. sender .. ": " .. game.Chat:FilterStringForPlayerAsync(message, player) local playerMessages = messageData[tostring(player.userId)]
I'm making a custom chat system and I want the Player's TeamColor to go before the Player's name, but it always has issues with TeamColor being a Userdata value or something and it breaks the script. Some help with this please?
Hi Scoota! Your variable teamthing can be converted to a string via the method tostring().