I’m attempting to update a value that is inside of a key if that makes sense. I’ve tried everything but it doesn’t seem to update no matter what I do. not sure why datastores like to be so difficult, I’ve been scripting for many years but this has stumped me.
Essentially what I want to do is:
| Datastore
|-> Key
|->Table
|-> Value in table
In this instance i want to delete or set the value in the table to nil.
The way I’ve designed my datastore for this game requires it to store huge sums of tables in one key and I want to be able to erase a given table in the datastore.
I’m quite confused as to what I should do here so if I didn’t explain properly don’t hesitate to ask questions.
Let me rephrase the post, im trying to update a single value in a table thats saved to a datastore key and erase that value.
[Datastore] → Some Key → {[“cat”] = true}
I want to set cat equal to nil. You might say to overwite it with setasync but in my instance the key has thousands of other tables in it that i do not want to update, i just want to change that one specific value.
I literally re-launched my studio and it started working i have no clue how that fixed it but it did. UpdateAsync (which i had already tried before is how i updated the value)