Does anyone know how to give a chat tag a gradient?

Hello developers, so recently I’ve been working on my new game, I’m trying to make a chat tag but
add a gradient favor to it.

Script:

local sss = game:GetService("ServerScriptService")
local cs = require(ServerScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
local players = game:GetService("Players")

local other = {'heysticks'}  -- Name here

ChatService.SpeakerAdded:Connect(function(PlrName)
	local Speaker = ChatService:GetSpeaker(PlrName)
	for _, v in pairs(other) do
		if players[PlrName].Name == v then
			Speaker:SetExtraData('Tags', {{TagText = "Owner", TagColor = Color3.fromRGB(255, 255, 127)}})
		end
	end
end)
3 Likes

I think you’d have to create your own chat UI iirc. And just made a sample text label/frame that you want the chat to be. Add a UIGradient inside it and add a ColorSequence. That might be the only way. I not quite sure if there are any other ways.

1 Like

I’ll try this out, Thank you. :slight_smile:

I have created a modified chat that will allow UIGradient. Example Script is in there image
ChatWithGradient.rbxm (119.5 KB)

4 Likes

Thank you so much! :slight_smile:

I really needed this!

Its not working anymore,

Try putting the gradient on ReplicatedStorage