I was wondering, is it possible to run a for loop like this?
local folder = workspace:WaitForChild('Folder1')
local replicatedFolder = game.ReplicatedStorage:WaitForChild('ReplicatedFolder')
for i, item in pairs(folder:GetChildren() and replicatedFolder:GetChildren()) do
-- code here
end
When I try to do this the code that I am using seems to break and no errors appear in the output.
this is not about if the folders are empty, this is about to see when the loop breaks. by printing the items you could check if it loops all the way and by printing the parent you could check if it loop through both folders or only one folder