Everything works but the chat tag is broken

So the scripting on my Video named: Premium players. Every player that gets the source code and put it on the code their game will grant Roblox Premium Players A: Colored Chat Tag and a Overhead gui that says “Premium”. Now, everything works except the Colored Chat Tag.
Is there something wrong? *Ppl got it but it doesnt work on their premium players

Script:

-- Services
local serverScriptService = game:GetService("ServerScriptService")
local chatService = require(serverScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
local players = game:GetService("Players")

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(char)
		if player.MembershipType == Enum.MembershipType.Premium then
			local billboardgui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")
			
			local clonedgui = billboardgui:Clone()
			clonedgui.Parent = char:FindFirstChild("Head")
			clonedgui.TextLabel.Text = "Premium"
			clonedgui.TextLabel.TextColor = Color3.fromRGB(192,192,192)
			
			local premium = clonedgui
			
			chatService.SpeakerAdded:Connect(function(PlrName)
				local speaker = chatService:GetSpeaker(PlrName)
				for _, v in pairs(premium) do
					if players[PlrName].Name == v then
						speaker:SetExtraData('Tags',{TagText = 'Premium',TagColor = Color3.fromRGB(255,255,255)})
					end
				end
			end)
		end
	end)
end)

I think the issue is that speaker:SetExtraData('Tags',{TagText = 'Premium',TagColor = Color3.fromRGB(255,255,255)}) needs to change to speaker:SetExtraData('Tags',{{TagText = 'Premium', TagColor = Color3.fromRGB(255,255,255)}}) (Add the extra curly brackets)

1 Like

Just tested, it appears that seems to be the issue.

1 Like