Hello!
I’m currently creating an image that updates every time another text changes I. I get the error
11:08:36.396 - Image "https://assetdelivery.roblox.com/v1/asset?id=4997400540" failed to load in "Players.TheDeadTed14.PlayerGui.Instructions.SpellShower.Image.Image": Request failed
Here is an example of my script:
while wait() do
if script.Parent.Parent.Parent.Frame.Current.Text == "Lumos" then
script.Parent.Image = "http://www.roblox.com/asset/?id=4997400540"
end
That occurs due to a failure in importing the image, try set the image as decal in a part before testing, so it’s already loaded and it shouldn’t fail. Also try write: Image.Image = “rbxassetid://4997400540” instead
Can you try pasting the link “http://www.roblox.com/asset/?id=4997400540” into a decal to get the appropriate rbxassetid:// link? Once you get that updated asset ID, use that for the Image ID.
You’re using an invalid asset. Use the id 4997400527. When using pictures in Roblox games, you require the image asset, not the decal. The image asset is what actually gets rendered in game (internal asset) while the decal asset is only used for asset information on the website.
The URL of course. Just change the id you’re using, that’s all. You can either continue to use the current link with the numbers I supplied above or use the ContentId shorthand.
wait(2)
while wait() do
if script.Parent.Parent.Parent.Frame.Current.Text == "Lumos" then
script.Parent.Image = "http://www.roblox.com/asset/?id=4997400527"
wait()
end
end