Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would I simplify this datastore to only use one :GetAsync()?

So I'm using GetAsync to get values individually from a table stored in the datastore.

wins.Value=datas:GetAsync(key)[1]
-- Is basically what I'm doing for every single value.

How would I use GetAsync on the entire table all at once - and then copy it over to each value so that I only use one GetAsync?

1 answer

✓ Accepted answer

Like this.

local data = datas:GetAsync(key)
wins.Value = data[1]

Hope this helped.

2 comments

0

Thank you friend

0

No problem.

This discussion is preserved as it was. New answers, comments, and votes are closed.