SmartData - Save your data without coding

→ What is SmartData :thinking:?

  • SmartData is a ModuleScript that automatically configures datastores to store player data. :floppy_disk:

  • SmartData can load and save large amounts of data for each player in record time. :zap:

  • SmartData uses ProfileService and thanks to this, SmartData safeguards and prevents potential data loss in case of errors, duplicated items, etc. :medal_sports:

  • It only requires 1 line of code and 2 folders to set up your data (Settings and a Folder with data) In other words… you don’t need to code. :fire:

→ SmartData Assets :file_folder:

→ How to set up Smart Data and save my data? (example)

[REMEMBER]: Enable in your game the Allow HTTP Requests and Enable Studio Access to API Services.

[HOW?]: Inside your Studio in Home tab, click the button GameSecurity
(Publish it if it’s not already), then, go to Security section and there you are going to be able to enable those things and save changes.

  1. Create a Script inside ServerScriptService.
    (This Script is going to set up the data, you can change the name as you wish).

  2. Import to your place: SmartData Components and move any component that’s in the “SmartData [COMPONENTS]” [Folder] to the Script, then remove the “SmartData [COMPONENTS]” [Folder].
    → Like This:

--- ServerScriptService:
------- Script:
--------- SmartData      (ModuleScript)
--------- Settings       (Folder) [with values]
--------- FolderWithData (Folder) [you can change the name as you wish]
  1. Now, finally, we need to put the following code in the Script:
require(script.SmartData)(script.Settings, true, nil)

[NOTE]
You can change the datastore by changing the value of the
DataStore [StringValue] which is inside the Settings [Folder] which is inside the Script [Script] which is inside the ServerScriptService

[NEED TO KNOW THIS]
Inside “FolderWithData” [Folder] is where you are going to define what you want to save and how you want to save.
ㅤ- You can ONLY insert: StringValues, BoolValues, NumberValues or Int Values.

ㅤ- (For Example): Create a NumberValue called “Coins” inside “FolderWithData” [Folder] and assign a base value by adjusting the Coins Value, let’s say 100.
Then if you play the game, you are going to be able to see in the leaderboard your Coins value, if you change that value by +50 and you rejoin the game, then you can see that you still having 150 Coins.

Example Place: Here

9 Likes

This is awesome for speed-running and making games fast.

2 Likes

its good but lacks so many things :C

[UPDATES] (Settings Folder → Settings Values)

[+] Settings Values Detector by Keywords

That means that the values ​​have to contain the words in the name for SmartData to detect them. (It doesn’t matter if it is uppercase or lowercase).

  • FolderName: “name”.
  • FolderParent: “parent”.
  • DataStore: “datastore”, “ds”, “database”, “db”, “datas”, “datab”.
  • Folder: (this value has no keywords)

[+] Settings Values Commands:

For these commands to be executed you must change the value of the values ​​to the one indicated below. (Depends on the value).

→ DataStore:

  • “/random” = generate a random and secure code for your datastore (see output).

→ FolderName:

  • “/plr.name” = the player’s data folder (profile) name is the same as the player name.
  • “/plr.id” = the player’s data folder (profile) name is the same as the player user id.
1 Like

Wait bro, it is just SmartData v2 and now you don’t need to script to setup/configure your data, because SmartData do everything! (just need 1 line of code to execute SmartData and 2 folders: settings and a folder with your data to save, thats it!)

Bad for anyone who wants to control and manipulate their data, and a terrible lesson for beginners

1 Like

ProfileService + Replica always on top :smiley: (my opinion), alternative? Suphi Datastore, likely profileservice but session lock using memorystore and strictly typed already.

You can manipulate your data too;
I am making some explanation videos.

I can make a Suphi Datastore SmartData version, but is better ProfileService