Hello, I made a notification system and I want to use Rich Text to change the color of a specific word in the string.
The way it works is that you fire an remote event to the client that creates a text/the notification with the string that you use when you fire the event.
The problem is that I get this error when trying to use the example on the Roblox creator hub. Also when I tried with bold I got no error but the text didn’t go bold.
Object.Script:27: Expected ‘)’ (to close ‘(’ at column 22), got ‘#’ - Studio - Script:27
How could I solve the issue?
firing the remote:
remote:FireClient(plr,"I want the <font color="#FF7800">orange</font> candy.")
local function Create(value)
local newlabel = exlabel:Clone()
newlabel.Parent = frame
newlabel.Text = value
local tween1 = ts:Create(newlabel,ti2,{TextTransparency = 0}):Play()
task.wait(3)
local tween = ts:Create(newlabel,ti,{TextTransparency = 1}):Play()
task.wait(2.5)
newlabel:Destroy()
end
remote.OnClientEvent:Connect(function(value)
Create(value)
end)
Note that I am not familiar with Rich Text. Also, the scripts I provided are just the important stuff, just so you know.