I want to loop through these folders at the same time.
local attribute = box:GetAttribute("InsideItem")
local food = game.ReplicatedStorage.Items.Normal:GetChildren()
local plate = game.ReplicatedStorage.Items.Plate:GetChildren()
for _,v in pairs(food,plate) do
if v.Name == attribute then
print("item found!")
end
end
I tried something like this but the problem is that it’s only looping through the food folder.