> For the complete documentation index, see [llms.txt](https://docs.streamavatars.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.streamavatars.com/lua-scripting-api/api-reference-and-tips/global-functions/getallavatars.md).

# getAllAvatars

{% hint style="warning" %}
An avatar is not the same as a User.

the Avatar class contains data relevant towards a specific avatar, such as available gear items and color palettes that can be equipped.
{% endhint %}

```lua
return function()
    local allActiveAvatars = getAllAvatars();
    for i,avatar in pairs(allActiveAvatars) do
        log(avatar.name);
    end
end
```

{% content-ref url="/pages/8FVywZVtLYorClaiQRKU" %}
[Avatar](/lua-scripting-api/api-reference-and-tips/classes/avatar.md)
{% endcontent-ref %}
