Historical reference only. This discussion is preserved from the original Scripting Helpers site. Its code, Roblox APIs, and advice may be outdated. Consult current official Roblox documentation before using it in a project.
COMMUNITY QUESTION
someone can help me with this Lua Error? attempt to index local 'items' (a nil value) Asked Apr 13, 2019 248 views 0 answers
the error is the next
Item.lua:70: attempt to index local 'items' (a nil value)
Item.lua:70: in function Item.lua:66
Item.lua:136: in function `CreateMaps'
Item.lua:254: in function Item.lua:249 [C]: ?
66 local function AddMapping(map, key, ...)
67 map[key] = {};
68 local items = Utils.Pack(...);
69
70 for i = 1, items.n do
71 map[key][items[i]] = true;
72 end
73 end
full file:
Item.lua
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
a script would be great...