How do you get the players avatar in a script

I want to make a leaderboard system that shows the players full avatar by getting their Name or UserId. Any help is appreciated thanks.

If you desire to get their avatar image, conduct research on Players:GetUserThumbnailAsync() - it consists of a full guide on its purpose. For your case, as you want their full avatar, you can simply write:

local plrs = game:GetService("Players") --obtaining service
local content, isReady = plrs:GetUserThumbnailAsync(plr.UserId, Enum.ThumbnailType.AvatarThumbnail, Enum.ThumbnailSize.Size100x100)

Went searching for 30+ minutes i found this topic that solved my solution How to get a player's entire model, not just their assets? - #6 by K_reex wevetments post