Table.insert help

I’m working on a ban system, I decided to use tables instead of folders so I can datastore it later on, but I came across an issue, I don’t know how to insert a table like this

What I want:
image

How I thought it was done:
image

I tried printing it but it just returned nil, if anybody knows how these tables work please help me out

instead, do

Urtable[urid] = value

Table.insert does not work on dictionaries

Well what If I want to insert more content to a user id, what would I do

you can do

urtable[Id] = {urcontents}
1 Like

Make a table in a table thats how

Do you plan on banning users manually by inserting their id’s into the table?

image

?

Remove table.insert. Mmmmmsssss

yeah is there an issue with that

I mean, if you get more players in your game. Its gonna be tedious to ban players manually

There’s admins, and a table that saves it, seems fine to me

And it worked, appreciate you my guy

1 Like
urtable[Id] = {contents}--witjout table insert
1 Like

thanks, can you mark my post as solution?

Edit:thx

I did, check above big man (character ting)

1 Like

Is there any datastore? I mean you can have admins, but they still have to go into into the script in the game to make bans permanent.

I have admin commands system, they run a command using the chat, and the script will insert it into the table, and the table datastores it, I don’t see anything wrong with that

C’mon. Let’s stop this, if admins are in his game too then it’s definetly needed

Ok yeah just wanted to know, yeah there is nothing wrong with that.

2 Likes

Yo my man, my bad for stumbling again, how would I remove it from the table (for my unban command)