I have a list of image ids:
local img = {
off = "rbxassetid://9009639495",
on = "rbxassetid://9009640635",
solo = "rbxassetid://9009656565",
public = "rbxassetid://9009648080",
party = "rbxassetid://9009645603",
}
However, whenever I try to set an image button to one of the images,
m.Button.Image = img.solo
The image doesn’t display at all.
https://gyazo.com/19f28039113c526a536e18fc71dd1de6
This is with all images except for the ON one.
I have tried to preload the assets like so:
local ids = {}
local _i = 1
for _, v in pairs(img) do
ids[_i] = v
_i+=1
end
print(ids)
ContentProvider:PreloadAsync(ids)
However the ids
table is empty and so preloading does nothing.
I have also tried just using a regular ordinary list and preloading that (keeping in mind how I index as well) but to no avail.
Any help?