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:

-- give anyone in the group '1' rainbow text

chatPlus:dataForGroup({
   ["groupId"] = 1,
   ["minimumRank"] = 1,
   ["rainbowText"] = true
})

: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:

-- give anyone who has Roblox Premium rainbow chat text

chatPlus:dataForPremium({
   ["rainbowText"] = true
})

: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:

-- give anyone who owns the gamepass '16440831' rainbow text

chatPlus:dataForPass({
    ["passId"] = 16440831,
    ["rainbowText"] = true
})

: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:

chatPlus:setNameColor(game.Players.Roblox,Color3.fromRGB(255,0,0))

: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:

chatPlus:setTextColor(game.Players.Roblox,Color3.fromRGB(255,0,0))

Last updated