Still have questions? Join our Discord server and get real time help.
0

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

Asked by 14 days ago

error: 22:37:51.965 - ServerScriptService.ServerMessageHandler:4: bad argument #1 to 'pairs' (table expected, got string)

0
You're using parentheses, not table brackets. https://developer.roblox.com/articles/Table TheeDeathCaster 2212 — 14d

1
Answered by 14 days ago

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
thanks, this works sbot50 3 — 13d