How would I insert a UIGradient into a chat tag, the script below is the script that makes the tag.
how would i make the 5 stars have a uigradient?
local ServerScriptService = game:GetService("ServerScriptService")
local ChatServiceRunner = ServerScriptService:WaitForChild("ChatServiceRunner")
local ChatService = require(ChatServiceRunner.ChatService)
local SPECIAL_DATA = {
[1150243824] = { -- change id here
ChatColor = BrickColor.new("Really black").Color,
Tags = {
{
TagText = "★★★★★",
TagColor = BrickColor.new("Really black").Color,
},
{
TagText = "Owner",
TagColor = BrickColor.new("Really black").Color,
},
}
-- Other message formats here
},
[412276884] = {
ChatColor = BrickColor.new("Really black").Color,
Tags = {
{
TagText = "★★★★★",
TagColor = BrickColor.new("Really black").Color,
},
{
TagText = "Owner",
TagColor = BrickColor.new("Really black").Color,
},
}
-- Other message formats here
},
}
local function handleSpeaker(speakerName)
local speaker = ChatService:GetSpeaker(speakerName)
local player = speaker:GetPlayer()
if player then
local extraData = SPECIAL_DATA[player.UserId]
if extraData then
for key, value in pairs(extraData) do
speaker:SetExtraData(key, value)
end
end
end
end
ChatService.SpeakerAdded:Connect(handleSpeaker)
for _, speakerName in pairs(ChatService:GetSpeakerList()) do
handleSpeaker(speakerName)
end