Hello. I am making custom player tags for all users that join my game, as well as custom ones for specific users. The tag that is supposed to be for all users, or the Christmas tree emoticon (), is working fine. But the custom tags seem not to work when joining the game.
I should add that I am not an experienced scripter so I may have written some lines incorrectly here. Thanks for your help.
local players = game:GetService("Players")
local chatService = require(game.ServerScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
chatService.SpeakerAdded:Connect(function(player.UserId))then
speaker:SetExtraData("Tags",tags[player.UserId])
local tags = {
[45820713] = {TagText="🎄OWNER/DEVELOPER🎄",TagColor = Color3.fromRGB(255,255,255)},
[164656747] = {TagText="🎄DEVELOPER🎄",TagColor = Color3.fromRGB(255,255,255)},
[8546533] = {TagText="🎄DEVELOPER🎄",TagColor = Color3.fromRGB(255,255,255)},
[198120319] = {TagText="🎄DEVELOPER🎄",TagColor = Color3.fromRGB(255,255,255)},
}
end
chatService.SpeakerAdded:Connect(function(playerName)
local speaker = chatService:GetSpeaker(playerName)
local player = game.Players[playerName]
speaker:SetExtraData("Tags",{{TagText="🎄",TagColor = Color3.fromRGB(255,255,255)}})
end)