Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

i get bad argument #1 to 'pairs' (table expected, got string) can someone help?

1 answer

✓ Accepted answer

To define a table, you need to use these brackets "{ }" instead of parentheses "( )" since the parentheses are simply used to enclose a string or an operator set together.

Simply change this line

local allowed = ("sbot50")

to

 local allowed = {"sbot50"}

1 comment

1

thanks, this works

This discussion is preserved as it was. New answers, comments, and votes are closed.