Im making a crafting system for a game I work for. Im using a modulescript for the recipe data. When I loop through the modulescript and get the tables inside of the modulescript it says theyre a string and I cant loop through them. Any idea whats happening?
Error:
ModuleScript:
local module = {
DioDiary = {
Slot1 = "Arrow";
Slot2 = "Rokakaka Fruit";
Slot3 = "Rokakaka Fruit";
Slot4 = "Arrow";
Output = "DIO's Diary"
}, --Test Recipe [ebic]
}
return module
Script: local recipes = require(script.Parent.CraftingRecipes) for i,v in pairs(recipes) do for i2,v2 in pairs(i) do print(v) print(i) end end