I have 75 images imported into my game and I need to cycle through them. To do this I plan to just use a simple for loop but I have no idea how to get all the image ids into a table in the first place.
Of course I can always manually copy each asset id into the table, but that would take a long time, especially if I need even more images.
I have tried selecting all the images in the Asset Manager and using Insert/Copy Asset Id but it only inserts/copies the id of the image I clicked on
i’m not entirely sure that this is the right place to be posting this but oh well
local folder = workspace:WaitForChild("Folder")
local imageIds = {}
for i, v in pairs(folder:GetChildren()) do
if v:IsA("Decal") then
table.insert(imageIds, v.Texture)
end
end
This will cycle through the “Decal” instances of a folder, grab the value of the “Texture” property and insert it into a table.
Bumping this because I’m having the same issue. Is there any way to mass import images from the asset manager into a nice clean table without having to import each individually? Did you find a solution?
You have to run a boot call for the preservation metadata of the files and repurpose it as a gentrified MDM table framework where you can compile and establish a cyclic redundancy that pigeonholes each ID as arbitrary residents of said table.