Hey! I recently ran into a problem while changing my ImageLabel
's image with code. When I try to change it, I get a warning and the image doesn’t load, however.
This is the warning:
Image https://assetdelivery.roblox.com/v1/asset?id=7919061552 failed to load. Error 403: Asset type does not match requested type
I store the ID of the image in an Attribute as a string
. The lines that change the image are:
Line 1: evidenceframe.EvidenceImage.Image = "rbxassetid://" .. b:GetAttribute("ImageID")
Line 2: frame.EvidenceImage.Image = "rbxassetid://" .. c:GetAttribute("ImageID")
and the line that sets the attribute is:
b:SetAttribute("ImageID", tostring(v.ImageID))
The decal is approved, and when I change it manually in studio it works just fine.