I have the following scenario. I want to send this table from server to client using a remote event:
local tbl = {
e = {
[4] = true
},
s = {
{"a"},
{"b"},
{"c"},
{"d"},
}
}
When firing the remove event with this table as argument I get the following error message: Invalid table key type used. I read in Roblox tutorial of remote calls that despite not accepting mixed tables, remote events allows different sub-tables to have different index types. My problem goes away if I replace the 4 by its string equivalent “4”. Does anyone nows why this happens? Using numbers as keys, but not in a sequence as in an array, is allowed in Lua. So how come remote event throws invalid table key type in this scenario?