How do you display UGC limited information?

In some UGC games I’ve seen it displaying features of a ugc such as the max quantity and the current quantity remaining.

I’ve already seen a post on how to do it which lead me to this code

function updateugcstats()
	local template = workspace.Tv.Screen.SurfaceGui.Frame.Template
	local website = "https://catalog.roblox.com/v1/catalog/items/" .. currentugcid .. "/details?itemType=Asset"
	local ugcinfo = httpservice:JSONDecode(httpservice:GetAsync(website))
	template.NameText.Text = ugcinfo.name
	template.QuantityText.Text = "Quantity "..ugcinfo.unitsAvailableForConsumption.."/"..ugcinfo.totalQuantity
end

However I get get the error of “HttpService is not allowed to access ROBLOX resources”.
So how would I do this with a proxy because I can’t find any api/proxy which allows me to do it.

1 Like

replace roblox.com with roproxy.com

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.