Categories > Coding > Lua >
[help] Whitelist not working
Posted
I get this error whenever trying to run my script, one of its children is a module script that has the table in, not sure why its not working.
ServerScriptService.Fun.Fun Commands:20: invalid argument #1 to 'find' (table expected, got number)
if table.find(Player.UserId, Whitelists) then
Replied
According to table.find documentation, you provide the table first, then the value to look for second. You have that mixed up.
table.find({ "Hello", "World" }, "World") --> 2
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post