error: 22:37:51.965 - ServerScriptService.ServerMessageHandler:4: bad argument #1 to 'pairs' (table expected, got string)
code:
error: 22:37:51.965 - ServerScriptService.ServerMessageHandler:4: bad argument #1 to 'pairs' (table expected, got string)
code:
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"}
thanks, this works
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
You're using parentheses, not table brackets. https://developer.roblox.com/articles/Table