Roblox is giving me weird error

It keeps saying

Attempt to index boolean with 'U'

this is my code on the line that error

if tostring(Record.UserId) == JSON.remoteunban[Index].userId then

I tried rewriting the line that error cuz I thought probably unicode error and after I re publish it gives me a new error

Attempt to index boolean with 'Us'

Check the grammar, i see .userId in the end.

1 Like

the .userId is correct
it’s my JSON

Oh, it’s a ModuleScript right?

{
“userId”: “2293432834”,
“username”: “Do_ate”,
“reason”: “e”,
“moderator”: “847767875061547039”,
“requestId”: “nraq”
}

Then what should be the boolean ‘Us’?

I don’t know it’s roblox being weird

I think I’ve found the solution, Record was a boolean. I thought record was a dictionary. Thanks for helping me anyway :smiley: appreciated it

2 Likes