generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: how to reset DataStore values?

Previous Thread :: Next Thread 
iamsmartcookie is not online. iamsmartcookie
Joined: 18 Aug 2012
Total Posts: 2738
27 Jun 2015 08:47 PM
??
Report Abuse
iSpecializinq is not online. iSpecializinq
Joined: 31 May 2015
Total Posts: 2182
27 Jun 2015 08:48 PM
change the DS name
Report Abuse
iamsmartcookie is not online. iamsmartcookie
Joined: 18 Aug 2012
Total Posts: 2738
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
fishguy100 is not online. fishguy100
Joined: 16 Feb 2013
Total Posts: 3679
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
iamsmartcookie is not online. iamsmartcookie
Joined: 18 Aug 2012
Total Posts: 2738
27 Jun 2015 08:52 PM
example please?
Report Abuse
fishguy100 is not online. fishguy100
Joined: 16 Feb 2013
Total Posts: 3679
27 Jun 2015 08:54 PM
local DataStoreName = "NAMEHERE"

local DataStore = game:GetService("DataStoreService"):GetDataStore(DataStoreName)
Report Abuse
iamsmartcookie is not online. iamsmartcookie
Joined: 18 Aug 2012
Total Posts: 2738
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image