As the title implies.
Ask questions if necessary.
As the title implies.
Ask questions if necessary.
You can use MarketplaceService:GetProductInfo():
local info = game:GetService('MarketplaceService'):GetProductInfo(5365990751, Enum.InfoType.Asset)
if info and info.AssetTypeId == 13 then
print('Valid decal')
else
print('Invalid decal')
end
https://developer.roblox.com/en-us/api-reference/function/MarketplaceService/GetProductInfo
I recommend it make like this, because if you’re going to do it by clicking on the button, you’ll get an error:
local info
local success, err = pcall(function()
info = game:GetService('MarketplaceService'):GetProductInfo(5365990751, Enum.InfoType.Asset)
end)
if success and info.AssetTypeId == 13 then
print('Valid decal')
else
print('Invalid decal')
end