XLQP Gen1
ElementsData & charts

AddPlayerVisualizer

Adds a visual player preview with optional overlay boxes and live coloring.

AddPlayerVisualizer

What it does

Adds a visual player preview with optional overlay boxes and live coloring.

When to use it

Use it for avatar previews, player-selection tools, or visual configuration panels.

ElementFunction:AddPlayerVisualizer(PlayerConfig)

Visuals:AddPlayerVisualizer({
    Name = "My Player",
    Player = game:GetService("Players").LocalPlayer,
    Height = 238,
    LiveColor = "Cold Heat",
    LiveColorSpeed = 0.24,
    BoxCallback = function(enabled, player, box)
        print(box.Name, enabled, player.Name)
    end,
    Callback = function(player)
        print("Visualizing", player.Name)
    end
})

Behavior and return value

Call this method on the compatible section, tab, panel, or element container shown by the signature. Store the returned value when you need to update, read, or destroy the element later.

Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.