|
| 24 Jun 2014 02:49 PM |
I'm having trouble deleting values with the DataStore.
I've used this method:
DataStoreService:SetAsync(string,nil)
In my game, but it doesn't seem to delete the value.
Does this method work or not? If it does work, then I know I just have to debug the stuff around it, but if it doesn't work, how do you delete DataStore values? Thanks! |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Jun 2014 04:39 PM |
| You cannot delete Data Store asyncs. You can set them nil though. |
|
|
| Report Abuse |
|
|
error9999
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1593 |
|
| |
|
|
| 24 Jun 2014 04:40 PM |
| Ok thanks, is that what I did? If so, would that count as it being nil when trying to access it with the DataStore API, or would I have to specifically check if it's equal to nil for it to work? |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2014 04:41 PM |
| It would return as nil. If you saved it as a stat and changed a leaderstat to that, it would say nil. |
|
|
| Report Abuse |
|
|
| |
|