Custom tag return

Custom tags are for people that want to link tags to their own logic instead of predefined aspects like gamepasses or groups.

:assign

Arguments:

<instance> Player -> The player you want to assign the tag to

Sample code:

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

local targetPlayer = game.Players.Roblox --> this is gonna make someone mad (calling it) pls dont worry I would never write that
tag:assign(targetPlayer)

Result:

:unassign

Arguments:

<instance> Player -> The player you want to unassign the tag from

Sample code:

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

local targetPlayer = game.Players.Roblox --> this is gonna make someone mad (calling it) pls dont worry I would never write that
tag:assign(targetPlayer)
task.wait(1)
-- SIKE
tag:unassign(targetPlayer)

:getPriority

This method can be somewhat helpful in specific circumstances. It will return the priority of the tag being placed on the player. The higher the priority, the further to the right it is and the lower the priority the further it is to the left. It is provided with all tag-related functions.

Arguments:

<void>

Sample code:

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

print(tag:getPriority()) --> <integer>

Last updated