of     1   

DevVince
#141240023Wednesday, July 23, 2014 4:10 AM GMT

How would I make this check if the ID is a valid decal id? function test(ID) if ID == Catalog(13) then--Something like that not sure how to do it. print'true' return true else print'false' return false end end test(1337)
DevVince
#141240917Wednesday, July 23, 2014 4:19 AM GMT

Bumpz
FertileTurtle
#141241184Wednesday, July 23, 2014 4:22 AM GMT

function test(ID) if game:GetService("MarketplaceService"):GetProductInfo(ID).AssetTypeId == 1 then print'true' return true else print'false' return false end end test(1337) If that doesn't work, change the one from one of these values. http://wiki.roblox.com/index.php?title=Asset_types
DevVince
#141243528Wednesday, July 23, 2014 4:47 AM GMT

-- error -- MarketplaceService:getProductInfo() failed because rawProductInfo was empty function test(ID)--Line below to check if it has a AssetTypeId if game:GetService("MarketplaceService"):GetProductInfo(ID):FindFirstChild(AssetTypeId) then--This line erring if game:GetService("MarketplaceService"):GetProductInfo(ID).AssetTypeId == 13 then print'true' return true else print'false' return false end end end --print(game:GetService("MarketplaceService"):GetProductInfo(164645065).AssetTypeId) test(1337) test(164645065) ~ Works fine if it's a deacl ID but if it ins't it thows an error even if I have it check..
128GB
#141248939Wednesday, July 23, 2014 5:45 AM GMT

pcall pls
DevVince
#141249503Wednesday, July 23, 2014 5:52 AM GMT

Ah forgot about that, thanks.

    of     1