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 Store and leaderstats

Previous Thread :: Next Thread 
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
11 Jun 2014 02:32 AM
I was just wondering, how can I save a certain type of stat using Data Store?
Report Abuse
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
11 Jun 2014 05:02 AM
Help!
Report Abuse
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
11 Jun 2014 05:07 AM
Help me please
Report Abuse
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
11 Jun 2014 05:50 AM
Help?
Report Abuse
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
11 Jun 2014 06:00 AM
This is what I have so far, how can I make it save the stat called 'money'?

ds = game:GetService("DataStoreSerivce"):GetDataStore("stats")
local savestats = {"money"}
game.Players:PlayerRemoved:connect(function(player)
for i,#savestats do
--Help!
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
11 Jun 2014 06:02 AM
I've been meaning to make a model that I've lost that does this exact same thing, PM me so I can remember to give it to you when I finish, I'll make it today :P
Report Abuse
BenBonez is not online. BenBonez
Joined: 29 Aug 2008
Total Posts: 19362
11 Jun 2014 07:57 AM
Ironic, had you not proved your idiocy by continuously posting on my thread, I could have helped you several times by now
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
11 Jun 2014 08:47 AM
Done. Check my models :P
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
11 Jun 2014 09:10 AM
the script you posted, don't know if troll or..
Report Abuse
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
11 Jun 2014 11:22 PM
Thank you warspyking! Just what I needed, just need to modify so that it works with my leaderboard script and then it will work :D
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
12 Jun 2014 04:31 AM
No problem. DataStore comes easy to me, so I'm glad I could help :D
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