|
| 17 Apr 2016 03:11 PM |
| How exactly would you UpdateAsync a table? Specifically a table array. |
|
|
| Report Abuse |
|
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 17 Apr 2016 03:43 PM |
http://wiki.roblox.com/index.php?title=API:Class/GlobalDataStore/UpdateAsync
|
|
|
| Report Abuse |
|
|
|
| 17 Apr 2016 03:44 PM |
Would something like this work?
function UpdateTable(Key, NewTable) DS:UpdateAsync(Key, function(oldValue) oldValue[#oldValue + 1] = NewTable return oldValue end) end |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 17 Apr 2016 03:46 PM |
sure try that.
You can always test with just a normal table, updating the table and seeing if it does the thing you want, if it does, implement that into the update async
|
|
|
| Report Abuse |
|
|
| |
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 17 Apr 2016 03:48 PM |
datastore:UpdateAsync(key,function(OldValue) return NewValue end)
|
|
|
| Report Abuse |
|
|