local Colors = {
Color3.fromRGB(255, 255, 255),
Color3.fromRGB(255, 0, 0),
Color3.fromRGB(255, 255, 0),
Color3.fromRGB(255, 0, 255),
Color3.fromRGB(0, 0, 255),
}
local RandomColor = Colors[math.random(1, #Colors)]
local stringText = "Wakamoles"
local Text = string.format(
"<font color=\"rgb(%d,%d,%d)\">\%s\</font>",
RandomColor.R*255,
RandomColor.G*255,
RandomColor.B*255,
stringText)
print(Text) -- This prints <font color="rbg(255,0,0)">Wakamoles</font> as example...
label.Text = Text -- Put that Text variable into a rich text label
The %d will be replaced with colors in your table and multiplied by 255 as normal html text color.
The %s will be replaced by a string given to the string.format, just be sure u close your â</font>â tag too.
Just place that formated Text variable into a Label with rich text enabled and thats it.