Skip to main content

Role.GetColor

Shared
Color Lyn.Player.Role.GetColor(Player target)Function

Description

Returns the color of the highest role the specified player has.

Returns Color(0, 0, 0) if the player has no roles.

Params

  1. Player target

Returns

  1. 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)