So, I was told this Roblox Rich Text Module (Rich-Text-Markup.rbxm) could create Rich Text inside of Roblox. The thing is, i’m stuck on adding colour to my text. This is my current script.
local lex = require(script.Parent.Lexer)
local rich = require(script.Parent.RichText)
while wait(1) do
for token,src in lex.scan(script.Parent.TextBox.Text) do
if token == 'number' then
rich:New(script.Parent.TextBox, "<color=Red>"..src.."<color=/>")
end
end
end
I haven’t worked with the Rich Text Markup module before, but from reading the API, it seems that the tags are case sensitive? If everything in your code is working except for the colours not changing, then that could be your problem. Try using capitals at the starts of your tags.
"<Color=Red>"..src.."<Color=/>"
What the specific issue is is fairly unclear otherwise.