Skip to content

Role

A loaded role. You can get a Role object using Round:GetRoleFromRoleName(), or through Participant:GetRole().

See also: Gamemodes.RoleDefinition.

Type: "Role"

Always set to “Role”. Used to differentiate between classes.

Type: RoleDefinition

The RoleDefinition of the role.

Returns true if the role is allied with the given role.

NameTypeDefaultDescription
roleRoleThe role to check.

boolean

Returns the name of the role, formatted with the role color using rich text.

string

Returns the plural form of the role name, unformatted.

string

Returns "!" if RoleDefinition.IsExclamatory is true, "." otherwise.

string

Returns the string, formatted with the role color using rich text.

NameTypeDefaultDescription
strstringThe string to format.

string