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: Data persistance

Previous Thread :: Next Thread 
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
12 Sep 2011 09:36 PM
How do you know when to save something and when to load it?
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
12 Sep 2011 09:37 PM
game.Players.PlayerAdded:connect(function() to load

and

game.Players.PlayerRemoving:connect(function() to save

­<'+1 Post. Ujelly?'>
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
12 Sep 2011 09:44 PM
Then would this work?I'm new to it

game.Players.PlayerRemoving:connect(function(p)
p:WaitForDataReady()
p:FindFirstChild("leaderstats")
if p.leaderstats then
p.leadertstats:FindFirstChild("Money")
p:SaveNumber("leaderstats",Money)
end
end)--Don't know bout ends need studio
game.Players.PlayerAdded:connect(function(P)
P:WaitForDataReady()
if P.leaderstats.Money >=1 then
P:loadNumber("leaderstats",Money)
end
end)--Need studio for that

Would it work?If not why?
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
12 Sep 2011 09:49 PM
BUMp
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
12 Sep 2011 09:57 PM
Bump.Anyone, please?
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
12 Sep 2011 10:09 PM
BUMP AGAIN!I hope I see someone answering my uestion tomorrow :P
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