Hello there i am trying to make my chat tag with Ui Gradient colours. Any help/advice would be appreciated.Thanks!
CheckForChatTag = function(playerName)
print(playerName)
print("fired2")
local chatService = require(game.ServerScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
print("fired3")
local speaker = chatService:GetSpeaker(playerName)
local player = game.Players[playerName]
local title = player.EquippedTitle.Value
print(title)
if title == "" then
print("no equipped")
speaker:SetExtraData("Tags")
else
local itemtitle = game.ReplicatedStorage.Titles[title]
print(title)
print(itemtitle.Name)
speaker:SetExtraData("Tags",{{TagText = itemtitle.Name,TagColor = itemtitle.Frame.TextLabel.UIGradient.Color}})
print("equipped titlechat")
end