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: Anything bad with this datastore script

Previous Thread :: Next Thread 
killerbot29003 is online. killerbot29003
Joined: 04 Oct 2014
Total Posts: 3054
16 Aug 2016 12:15 PM
http://hastebin.com/inehuseleg.lua

I only learned the basics of datastores (because im lazy)



This siggy is copyrighted ©
Report Abuse
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
16 Aug 2016 12:18 PM
DON'T get data from the player's leaderstat. Save a record of there data solely in DataStore and just update it on their screen every time it changes.

And btw when they leave you're trying to save "leaderstat.Coins" instead of "leaderstat.Coins.Value" which you shouldn't do anyway but just letting you know
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
16 Aug 2016 12:19 PM
follow this format:

https://forum.roblox.com/Forum/ShowPost.aspx?PostID=195621950


Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
16 Aug 2016 12:20 PM
@phoenix thats perfectly fine to get stats from the player. Your game needs to be FE


Report Abuse
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
16 Aug 2016 12:21 PM
Oops I assumed it was

That's step 1
Report Abuse
killerbot29003 is online. killerbot29003
Joined: 04 Oct 2014
Total Posts: 3054
16 Aug 2016 12:24 PM
I'll use that format later in the future
is there any problems


This siggy is copyrighted ©
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
16 Aug 2016 12:25 PM
Yes. Your code is less flexible compared to the format I showed you. Problem #1


Report Abuse
killerbot29003 is online. killerbot29003
Joined: 04 Oct 2014
Total Posts: 3054
16 Aug 2016 01:07 PM
Here's what I have currently:

http://hastebin.com/qaxivelero.lua

hope its ok



This siggy is copyrighted ©
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