So i was trying to make a badge that has a certain amounts of collection, if it reaches a number then player wont be able to collect it. but as i tried BadgeService:GetBadgeInfoAsync() and MarketplaceService:GetProductInfo() none of them gave me the right answer
if you are clueless what im talking about.
i wanna get the number from “Won Ever”
local HttpService = game:GetService("HttpService")
local badgeId = 123456789 -- replace with your id
local response = HttpService:GetAsync("https://badges.roproxy.com/v1/badges/" .. badgeId)
local data = HttpService:JSONDecode(response)
local playersWithBadge : number = data.statistics.awardedCount