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
https://media.discordapp.net/attachments/706429709734510622/1138184558462902424/BEST_CLIP_EVER.gif?width=660&height=371
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