Chat Tags

One of the main reasons I designed this module is so you don't have to write all this code just to add things like chat tags to users, this module allows you to do it way quicker and easier.

If you're creating rainbow tags, the color needs to be white (255,255,255) or it'll just make the color you chose darker in a gradient (unless you want that)

:tagForGroup

This method sets up a chat tag with the specified parameters for anyone in the specified group.

Arguments:

<table> {

<integer> groupId (required) -> The group in question

<integer> minimumRank (required) -> The minimum rank required in the group

<string> tagText (optional if an image is used) -> The tag's text

<Color3> tagColor (optional if an image is used) -> The tag color ofc

<boolean> rainbow (optional) -> Makes the tag rainbow (works with images)

<boolean> override (optional) -> Removes all other tags when this one is added

<string> image (optional) -> (Image ID with rbxassetid:// for making icon tags)

}

Sample code:

-- anyone in group '1' with at least rank 100 gets a red tag that says 'dope'

chatPlus:tagForGroup({
    ["groupId"] = 1,
    ["minimumRank"] = 100,
    ["tagColor"] = Color3.fromRGB(255,0,0),
    ["tagText"] = "dope"
})

Result:

Returns:

pageException methods

:tagFromPass

This method sets up a chat tag with the provided information for people that own the specified gamepass (will go off if they purchase it in-game as well)

Arguments:

<table> {

<integer> passId (required) -> The gamepass the user needs to own

<string> tagText (optional if an image is used) -> The tag's text

<Color3> tagColor (optional if an image is used) -> The tag color ofc

<boolean> rainbow (optional) -> Makes the tag rainbow (works with images)

<boolean> override (optional) -> Removes all other tags when this one is added

<string> image (optional) -> (Image ID with rbxassetid:// for making icon tags)

}

Sample code:

-- Any user who owns the '1' gamepass gets a golden VIP tag

chatPlus:tagFromPass({
    ["passId"] = 1,
    ["tagText"] = "VIP",
    ["tagColor"] = Color3.fromRGB(255,255,0)
})

Result:

Returns:

pageException methods

:newTag

If you want to just set up your own tags and let the game process it instead of using groups / passes, this method is for you!

Arguments:

<table> {

<string> tagText (optional if an image is used) -> The tag's text

<Color3> tagColor (optional if an image is used) -> The tag color ofc

<boolean> rainbow (optional) -> Makes the tag rainbow (works with images)

<boolean> override (optional) -> Removes all other tags when this one is added

<string> image (optional) -> (Image ID with rbxassetid:// for making icon tags)

}

Sample code:

chatPlus:newTag({
    ["passId"] = 1,
    ["tagText"] = "Elite",
    ["rainbow"] = true,
    ["tagColor"] = Color3.fromRGB(255,255,255)
})

Showcase: (animated ingame dw)

Returns:

pageCustom tag return

:premiumTag

This method has the same arguments and return type as :newTag, except it's just automatically assigned to people with Roblox Premium.

Last updated