Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Verify decal ID via script

So this has been used in many places, but I have no idea how it works.

Basically, a user inputs a number (A.K.A. the decal ID) and I need the script to verify that the decal ID is valid and is registered and working etc...

How can I do this? Thanks!

1 answer

You can thank an epic update that brought the MarketPlace service for this. Here is an example script:

local ID = game:GetService("MarketPlaceService"):GetProductInfo(9001,"AssetTypeId")
if ID == 13 then
	print("Item 9001 is a Decal")
end

Get a full list of types of items here: http://wiki.roblox.com/index.php?title=Asset_types

6 comments

0

Thanks 18cwatford for making the link clickable.

0

Tysm

0

No problem... took me a minute to figure out what Tysm meant. :P

0

Haha :p I'm getting errors :S

0

Hmm... let me double chect the wiki post.

0

Fixed (I hope)

This discussion is preserved as it was. New answers, comments, and votes are closed.