it happens when you try to index an upvalue that cant be indexed
for example trying to index a number value:
local num=0
local function func()
--'num' is an upvalue in this function
local var=num[1] --attempts to index a number
end
func()
if you try to run the script above it gives this error:
attempt to index upvalue 'num' (a number value)
if you have no idea what an upvalue is its an external local variable like in the above example |