ApeRuss
(ApeRuss)
March 24, 2022, 11:25am
#1
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:
How I thought it was done:
I tried printing it but it just returned nil, if anybody knows how these tables work please help me out
commitblue
(commitblue)
March 24, 2022, 11:26am
#2
instead, do
Urtable[urid] = value
Table.insert does not work on dictionaries
ApeRuss
(ApeRuss)
March 24, 2022, 11:27am
#3
Well what If I want to insert more content to a user id, what would I do
commitblue
(commitblue)
March 24, 2022, 11:27am
#4
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?
commitblue
(commitblue)
March 24, 2022, 11:29am
#8
Remove table.insert. Mmmmmsssss
ApeRuss
(ApeRuss)
March 24, 2022, 11:29am
#9
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
ApeRuss
(ApeRuss)
March 24, 2022, 11:30am
#11
There’s admins, and a table that saves it, seems fine to me
ApeRuss
(ApeRuss)
March 24, 2022, 11:31am
#12
And it worked, appreciate you my guy
1 Like
commitblue
(commitblue)
March 24, 2022, 11:31am
#13
urtable[Id] = {contents}--witjout table insert
1 Like
commitblue
(commitblue)
March 24, 2022, 11:31am
#14
thanks, can you mark my post as solution?
Edit:thx
ApeRuss
(ApeRuss)
March 24, 2022, 11:32am
#15
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.
ApeRuss
(ApeRuss)
March 24, 2022, 11:32am
#17
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
commitblue
(commitblue)
March 24, 2022, 11:32am
#18
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
ApeRuss
(ApeRuss)
March 24, 2022, 11:41am
#20
Yo my man, my bad for stumbling again, how would I remove it from the table (for my unban command)