Trying to get the value of player's avatar

How would I get the value of a player’s avatar? I’ve tried using the function below, however, this function does not account for bundles or animations or limiteds that have a price that differs from their original one. So, I’m assuming the only option left is HttpService, and a relevant API that can return the player’s avatar value. What API could I use, how would I set it up, and am I overlooking a simpler solution?

function GetAvatarWorth(id)
	local info = Players:GetCharacterAppearanceInfoAsync(id)
	local items = info.assets
	local Avatar_Worth = 0
	for _, product in pairs(items) do
		local ProductInfo = MarketplaceService:GetProductInfo(product.id,Enum.InfoType.Asset)
		if ProductInfo.IsForSale then
			Avatar_Worth += ProductInfo.PriceInRobux
		end
	end
	return Avatar_Worth
end

–Bump-- minimum characters needed

1 Like

–Bump-- Minimum characters required

2 Likes

–Bump-- minimum characters needed

1 Like