Images failing to load can caused by the following:
The image was moderated
Roblox http requests are down (which is usually unlikely to happen)
Edit:
Can you add a print to the server script to make sure that you are loading the correct image ID or if there is actually an image ID getting sent to the server.
I also, have already tried printing, and the image was a test image from the top page on Decals in developer. Also, I have been working on this for a while (2 - 3 days).
You have to use the image’s ID itself, not the decal’s ID. If you paste the raw ID into a decal’s texture in studio, you’ll see it changes. To do this in a script, you can do this:
You appear to be using the site IDs. These are not the same as AssetIds. You need to use the AssetId of a decal if you wish for it to render in-game. Another way of obtaining it, is pasting the site ID of the decal in question and putting it in the Texture property of an unused/unrendered Decal, and copying the new ID it gives you.
You need asset IDs you have image IDS, you can run a simple script using GetProductInfo to get the asset ids from the images.
Try:
local myimage = 73737627
function imagetoasset(image)
info = game:GetService("MarketplaceService"):GetProductInfo(image, Enum.InfoType.Asset)
return info.AssetId
end
print(imagetoasset(myimage))
There’s a reason why some players have a smooth gaming experience and some don’t. Assets are loaded into the client, if your internet is slow, the request may fail.
Images that are not for sale and are not yours cannot be used by you and other people other besides the owner.
Yes, but assets are requested first on the Server then loaded on the Client. There could be loading delay, on the Client, but the assets are already requested and loaded on the server. If the server has trouble requesting an asset, it will throw an error, this has nothing to do with the client. The server doesn’t throwback errors when the client can’t load an asset, because its already loaded on the server.
I never knew this, testing this right now.
Edit: With my findings, it is still possible to use assets that you do not own or that are on sale.
Are you sure about this? I’m pretty sure the client’s output will thorw an error if the client can’t load a certain image, not the server (for different image ids)
Hmm, I will into this. Last time I checked, it was not possible.
Edit:
I stand corrected. I should have used a proper setup when testing. You can definitely use images that are not for sale and not yours.
That’s because the AssetId key/field of the table value returned by GetProductInfo() matches the ID that was passed as an argument to it. You need to iterate over the catalog IDs behind the requested decal ID in order to retrieve its corresponding image ID.