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!
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!
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
6 comments
Thanks 18cwatford for making the link clickable.
Tysm
No problem... took me a minute to figure out what Tysm meant. :P
Haha :p I'm getting errors :S
Hmm... let me double chect the wiki post.
Fixed (I hope)