| |
|
| |
|
|
| 27 Jun 2015 08:50 PM |
| if i changed it from Coins to Dollars and back to Coins then will it be 0? |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2015 08:51 PM |
| Nah changing the name is inefficient. Make a variable named "Key" and just make the datastore name that value so that you can easily reset it instead of going through every line to change the name. |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Jun 2015 08:54 PM |
local DataStoreName = "NAMEHERE"
local DataStore = game:GetService("DataStoreService"):GetDataStore(DataStoreName) |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2015 08:55 PM |
| oh, but thats not the problem. what if I want to change the DataStore name from Coins to Ching to Coins, would it be 0? |
|
|
| Report Abuse |
|
|
vacha
|
  |
| Joined: 06 Jan 2011 |
| Total Posts: 1993 |
|
|
| 27 Jun 2015 09:25 PM |
You can't really reset datastore values, you can assign them a nil value. The best way to not use old values is use a new name..
while true do the do |
|
|
| Report Abuse |
|
|