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 » Scripting Helpers
Home Search
 

Re: How to delete DataStore values?

Previous Thread :: Next Thread 
AlternativeAcc is not online. AlternativeAcc
Joined: 29 Mar 2012
Total Posts: 1337
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
AlternativeAcc is not online. AlternativeAcc
Joined: 29 Mar 2012
Total Posts: 1337
24 Jun 2014 04:38 PM
bump
Report Abuse
BuildIntoGames is not online. BuildIntoGames
Joined: 02 Sep 2011
Total Posts: 6634
24 Jun 2014 04:39 PM
You cannot delete Data Store asyncs. You can set them nil though.
Report Abuse
error9999 is not online. error9999
Joined: 05 Sep 2009
Total Posts: 1593
24 Jun 2014 04:39 PM
make the value 0?
Report Abuse
AlternativeAcc is not online. AlternativeAcc
Joined: 29 Mar 2012
Total Posts: 1337
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
BuildIntoGames is not online. BuildIntoGames
Joined: 02 Sep 2011
Total Posts: 6634
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
AlternativeAcc is not online. AlternativeAcc
Joined: 29 Mar 2012
Total Posts: 1337
25 Jun 2014 09:27 AM
Ok thanks!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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