Referencing Entire Table?
Hey guys, so I am trying to work on a project where a large number of gui items are being put into a table to make working with them easier. Only issue currently is I am trying to write a function to make all of them fade, but no matter how I do it it only does them one by one instead of the entire table at once. How would you work around this? I'm not really well versed in coroutines as I figure it will involve that somehow.
This is how the table is set up:
local FloorImages = script.Parent:GetChildren()
local Floor = script.Parent.Parent.Parent
local Labels = {}
for i=1,#FloorImages do
if FloorImages[i].Name == "Tile" then
table.insert(Labels, FloorImages[i])
end
end
--Here is what was being used to try and fade them all at once
function fadefull()
for i, v in pairs (Labels) do
for i = 0, 1, 0.1 do
v.BackgroundTransparency = i
wait(.2)
end
end
wait()
end

5 comments
I'm not sure what part of this would make them "fade" and it's not possible to do more than one thing at t time, just make sure they're done in the right order. You'll simply have to iterate the table as you've already done. Just make sure there's no yielding between each element.
I didn't include the actual part as all of them were broken, how can I have them all fade at once without yielding at all? The way I was fading them was using a for i = 0, 1, 0.1 do and then changing the transparency to i but without a yield its instant when I want it to fade smoothly.
Can you include the code you are using to fade the gui parts.
Added to post
Use Tween for smooth non-yielding transitions