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
 

How to datastore things that aren't part of leaderstats

Previous Thread :: Next Thread 
R4mastered is not online. R4mastered
Joined: 15 Aug 2014
Total Posts: 94
30 Oct 2017 10:53 PM
I see yt videos on how to datastore and they're all on leaderstats.

Plus, i've been trying to find a way to save BodyDepthScale forever now, please help.
Report Abuse
WillyWonka426 is not online. WillyWonka426
Joined: 23 Oct 2016
Total Posts: 551
30 Oct 2017 11:07 PM
I have a script that data stores leaderstats and the size of your char.


R$1,038
Report Abuse
SummerEquinox is online. SummerEquinox
Joined: 25 Jun 2013
Total Posts: 2088
30 Oct 2017 11:45 PM
You can datastore anything using Roblox's DataStoreService, this includes JSONEncoded tables even.

Let's take a look at a basic storing of a JSON table:

local Functions = {}
Functions.__Index = Functions

local a = game:GetService("DataStoreService"):GetDataStore("Table")
local b = {1,true,"striiing"}
local c = game:GetService("HttpService")

functions Functions.StoreTable(self,table)
a:SetAsync(key,c:JSONEncode(b))
end

Using this setup we can call our StoreTable function and save the entire table!

If you'd like to read up more on these concepts I recommend these articles:
http://wiki.roblox.com/index.php?title=JSON
http://wiki.roblox.com/index.php?title=Table
http://wiki.roblox.com/index.php?title=Data_store


Programmer, DevForum Member, RDC Attendee, Roblox QA Tester, and Roblox Beta Tester.
Report Abuse
R4mastered is not online. R4mastered
Joined: 15 Aug 2014
Total Posts: 94
30 Oct 2017 11:48 PM
I'm a completely new scripter, WillyWonka, could you give me a run down on how I would save size of char?
Report Abuse
WillyWonka426 is not online. WillyWonka426
Joined: 23 Oct 2016
Total Posts: 551
31 Oct 2017 12:04 AM
accept my fr


R$838
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