Hello,
I’m trying to create a script where every once and a while it will pick a random asset id (decal) from a table. However, I’m running into a problem where when I try to load the asset into the game, I get an error saying that the request failed.
Direct error:
Image “https://assetgame.roblox.com/asset/?id=1255785935” failed to load in “Workspace.Screen.SurfaceGui.Frame.Frame.ImageLabel.Image”: Request failed
Script:
local images = {1255785935, 1255792029}
local screen = game.Workspace:FindFirstChild(“Screen”)
local imagelabel = screen.SurfaceGui.Frame.Frame.ImageLabel
while true do
wait(10)
local newimage = images[math.random(#images)]
imagelabel.Image = “rbxassetid://” … newimage
end
I’ve tried using Preload, but i’m not really sure how to use it correctly (looking at Wiki). Is anyone able to help me and point me into the right direction?
Thanks,
Surgo