Role.GetColor
Shared
Color Lyn.Player.Role.GetColor(Player target)FunctionDescription
Returns the color of the highest role the specified player has.
Returns Color(0, 0, 0) if the player has no roles.
Params
Playertarget
Returns
The color of the highest role the player has. Or
Color(0, 0, 0)if none.
Example:
print(Lyn.Player.Role.GetColor(Entity(1)))
-- Output:
-- Color(255, 0, 0)