Chat colors
These methods allow you to set up chat colors & name colors with ease in different kinds of categories.
:dataForGroup
This method sets up name colors and text colors for people in the specified group.
Arguments:
<table> {
<integer> groupId -> The specified group ID
<integer> minimumRank -> The required rank in the specified group for properties to be applied
<Color3> nameColor (optional) -> The user's name color
<Color3> textColor (optional) -> The user's text color
<boolean> rainbowText (optional) -> Do they have rainbow text?
<boolean> rainbowName (optional) -> Do they have a rainbow name?
}
Sample code:
:dataForPremium
This method sets up name colors and text colors for people who have Roblox Premium.
Arguments:
<table> {
<Color3> nameColor (optional) -> The user's name color
<Color3> textColor (optional) -> The user's text color
<boolean> rainbowText (optional) -> Do they have rainbow text?
<boolean> rainbowName (optional) -> Do they have a rainbow name?
}
Sample code:
:dataForPass
This method sets up name colors and text colors for people who own the specified gamepass
Arguments:
<table> {
<integer> passId -> The specified gamepass ID
<Color3> nameColor (optional) -> The user's name color
<Color3> textColor (optional) -> The user's text color
<boolean> rainbowText (optional) -> Do they have rainbow text?
<boolean> rainbowName (optional) -> Do they have a rainbow name?
}
Sample code:
:setNameColor
If you don't want to stay by predefined guidelines like the above (premium, group, gamepass, etc) this function is for you! It allows you to set the specified player's name color.
Arguments:
<integer> player -> The specified player
<Color3> nameColor (optional) -> The user's name color
<boolean> isRainbow (optional) -> This will set their name color to be rainbow instead
Sample code:
:setTextColor
If you don't want to stay by predefined guidelines like the above (premium, group, gamepass, etc) this function is for you! It allows you to set the specified player's text color.
Arguments:
<integer> player -> The specified player
<Color3> textColor (optional) -> The user's text color
<boolean> isRainbow (optional) -> This will set their name color to be rainbow instead
Sample code:
Last updated