Skip to main content

TextColor

info

This API can be used from both the client and the server.

tip

This API directly returns a function. You should not specify a function name.

Returns a string formatted with rich-text to use the specified color.

Parameters

NameTypeDefaultDescription
textstringThe text to format.
colorColor3The color to format the text to.

Returns

string