So basically I've been trying to make a button that loads a random decal. Problem is, decals share the same IDs as models, places, etc...
I've tried doing a script, which keeps randomly choosing asset IDs until it finds a decal but it's not working for some reason.
local ID = math.random(1, 73737627)
local MarketplaceService = game:GetService("MarketplaceService")
local productInfo = MarketplaceService:GetProductInfo(ID, Enum.InfoType.Product)
if productInfo.AssetTypeId == 7 then
print("Success!")
Could somebody either help me with it or show me an alternate way? Thanks.

1 comment
Whiz's seems good, this one has too many flaws becuase you will also have to constantly update the random number as well