So basically I have a bunch of images I have to load because they dont load in game by themselves. I am using PreloadAsync but it's failing every time.

I have a bunch of ids stored in a table and before I put them in the table I pasted the original id into a ImageLabel and then copied it from there into the table.

local assetsToLoad = {}

  

for _,v in pairs(game.ReplicatedStorage.Remotes.GetCards:InvokeServer()) do

local asset = Instance.new("ImageLabel")

asset.Image = "rbxassetid://"..v

table.insert(assetsToLoad, asset)

end

  

for i = 1,10 do

print("------------------------------------------------------------")

game:GetService("ContentProvider"):PreloadAsync(assetsToLoad)

end

  

print("Done")

^I tried loading it multiple times to see if that worked so that's why I used a loop

Does anyone know any solutions I can try?