How can i rich text variables?

i want to rich text a random selected child of a table but its not working
heres my script i tried to concatenate it but it didnt work

local RandomName = names[math.random(1, #names)]

script.Parent.Text = '<mark><font color="rgb(18, 195, 255)">.. RandomName ..</font></mark> Donated <mark><font color="rgb(18, 195, 255)">500$</font></mark>'
1 Like

You didn’t insert the variable correctly

local RandomName = names[math.random(1, #names)]

script.Parent.Text = '<mark><font color="rgb(18, 195, 255)">'.. RandomName ..'</font></mark> Donated <mark><font color="rgb(18, 195, 255)">500$</font></mark>'
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.