Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I set and retrieve Async Tables?

Asked by
Zeluxis 100
5 years ago
Edited 5 years ago

Hi,

I'm quite used to DataStores, however I am not the most efficient and knowledgeable of the topic.

I'm currently wondering how I'd go about saving a multitude of values, however these values may vary in strings and also vary in amount of values. At the current moment in time, I've managed to save all the children of a folder through DataStores, my only issue, is how to retrieve it and put it back into the folder as an instance.

I'm clearly not asking for a script. I'm asking for more direct help on this situation to be able to accomplish my task, rather than being directed to the wiki page, which I have scoured over for a while, may I add..

To help with explaining this, I'll add some context:

I'm attempting to create a Criminal Record System that a player can log a string. Now, as it's a criminal record system, the amount of records will be variable. Some players will have 2 records, some 25.

What I've currently done is created a folder within the player and added records via a StringValue that is a child of that folder. I've then, when the player is leaving the game, saved all the children of that folder. That works fine.

My issue lies with actually retrieving the Async of such. Obviously, reading it is absolutely fine, it's more putting it back into the folder so it can be read by scripts.

In conclusion, I'm really just looking for a more efficient way to do this (and a way that would actually work correctly.) Thanks in advance.

0
"rather than being directed to the wiki page, which I have scoured over for a while, may I add.." nice one mate really helpful that Zeluxis 100 — 5y

Answer this question