|
| 14 Jul 2015 07:10 PM |
So lets say I have a DataStore, and inside that DataStore is a table named "Info" containing {1,2,3,4,5}. I run this script.
game.Players.PlayerAdded:connect(function(p) local info = ds:GetDataStore("p: "..p.userId):GetAsync("Info") for i,v in pairs (info) do print ("Looped through DataStore.") end end)
Will it call GetAsync Once or 5 Times (as the Table contains 5 values)?
|
|
|
| Report Abuse |
|
gooey333
|
  |
| Joined: 24 Mar 2013 |
| Total Posts: 1208 |
|
| |
|
| 14 Jul 2015 07:19 PM |
I know, it seems like a solid answer. Just seeing if I can get some extra confirmation.
|
|
|
| Report Abuse |
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 14 Jul 2015 07:24 PM |
It will only call it once.
Also you shouldn't have a datastore for each player. |
|
|
| Report Abuse |
|