Help With Userdata Values?
1 | for _, player in pairs (game.Players:GetPlayers()) do |
2 | local teamthing = player.TeamColor |
3 | local sanitizedMessage = teamthing .. sender .. ": " .. game.Chat:FilterStringForPlayerAsync(message, player) |
4 | 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?