I want to find out if when a Players adds an image ID if the image ID is valid.
function IsImageValid(id) local isimage local success,message = pcall(function() local imageid = game:GetService('MarketplaceService'):GetProductInfo(id) isimage = imageid.AssetTypeId == 1 end) return success and isimage end
Pretty much the same thing as the IsGameValid function, but it does it for images.