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 shut down servers and not mess up player saves

Previous Thread :: Next Thread 
Fangous is not online. Fangous
Joined: 03 Jul 2010
Total Posts: 4448
29 Apr 2017 03:07 PM
Datastores don't save player data when a server shuts down. Any way to fix this?
Report Abuse
SPACEDUDZ is online. SPACEDUDZ
Joined: 12 Jul 2014
Total Posts: 257
29 Apr 2017 03:10 PM
Make it save every 10 seconds.


Report Abuse
DataStore is not online. DataStore
Joined: 07 Feb 2012
Total Posts: 8540
29 Apr 2017 03:13 PM
The best route, I believe, would probably be using OnClose.

OnClose is a callback which prolongs the server shutdown (by up to 30 seconds), giving you time to finish (or do) any saving which needs to be done. Doing it incrementally, as suggested by Fangous, wouldn't really be the best route.
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
29 Apr 2017 03:14 PM
use BindToClose
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