Having trouble with richtext
richtext property is enabled
local textVar = "<tag><font color = rgb(0, 0, 255)>"..Char.Name.."</font>".." ".."Has".." "..killMessage[math.random(1, #killMessage)].." "..EnemyChar.Name.."</tag>"
Having trouble with richtext
richtext property is enabled
local textVar = "<tag><font color = rgb(0, 0, 255)>"..Char.Name.."</font>".." ".."Has".." "..killMessage[math.random(1, #killMessage)].." "..EnemyChar.Name.."</tag>"
Did you take a look at this post? How do I use rich text inside a script?
Also, try this:
local textVar = "<tag>""<font color = rgb(0, 0, 255)>"..Char.Name.."</font>".." ".."Has".." "..killMessage[math.random(1, #killMessage)].." "..EnemyChar.Name.."</tag>"
I have but its just not working
i get red when i do this
Try removing the tag and /tag completely? Does that affect anything?
same thing
hmmm try this code:
local textVar = "<font color = rgb(0, 0, 255)>".. Char.Name .."</font>".. "Has" ..killMessage[math.random(1, #killMessage)].. EnemyChar.Name
its not working, this is so frustrating
Are there any errors? What does it show?
no errors i don’t get this
Can I see what the text looks like in the UI
Set your Textlabel.text equal to the code
try this for color
local textVar = "<font color=\"rgb(0,0,255)\">".. Char.Name .."</font>".. "Has" ..killMessage[math.random(1, #killMessage)].. EnemyChar.Name
Try using your original code and see if it works.
I checked the textlabel and its empty
Did you set your original code equal to the textlabel.text?
no I changed it up a bit
this is what I have right now
local textVar = "<tag><font color = rgb(255, 0, 0)>"..Char.Name.."</font>".." ".."Has".." "..killMessage[math.random(1, #killMessage)].." "..EnemyChar.Name.."</tag>"
TextLabel.Text = "<font color = rgb(255, 0, 0)>".."this is starting to really suck".."</font>"
im not using the variable anymore just using a string
Try adding the tags back. It may be just your variable.
not working: