How can I check to see if an Image ID is valid?

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

1 Like

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