Player attributes

Each player is assigned attributes that do something related to the chat by default.

DisplayName <string>

The 'DisplayName' attribute can be changed to update the player's nickname in the chat. It defaults to the regular player's display name if display names are enabled by the configuration.

player:SetAttribute("DisplayName","Troll")

ChatColor <color3>

This attribute changes the player's chat color, default is white.

player:SetAttribue("ChatColor",Color3.fromRGB(255,0,0)) --> Red chat color!

DisplayNameColor <color3>

The player's display name color is defined by this attribute.

To prevent the DisplayNameColor from changing when you set another DisplayName, change the 'ChangeDisplayNameColorWhenAttributeChanged' setting in the configuration module.

player:SetAttribute("DisplayNameColor",Color3.fromRGB(255,0,0)) --> Red display name >:)

NameColor <color3>

The player's actual name color is defined by this attribute.

player:SetAttribute("NameColor",Color3.fromRGB(0,255,0)) --> green!

Muted <boolean>

The player's muted status in chat can be determined by this attribute.

player:SetAttribute("Muted",true)

UseTeamColor <boolean>

Use team color over custom name color?

player:SetAttribute("UseTeamColor",false)

Last updated