Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How Can I print out a players Data Using Data Store?

Asked by 9 years ago

So currently I am playing with DataStores, but I have a difficult time trying to see the values through the console. The closest I got was a table, the furthest I got was a function past that table.

I am using a modulo script with a player on added event on another script. Anyways, the goal is to print all the data inside my modulo code on the console.

http://wiki.roblox.com/index.php?title=Saving_Player_Data

this is the modulo script I am using

01-- Setup table that we will return to scripts that require the ModuleScript.
02local PlayerStatManager = {}
03 
04-- Create variable for the DataStore.
05local DataStoreService = game:GetService('DataStoreService')
06local playerData = DataStoreService:GetDataStore('PlayerData')
07 
08-- Create variable to configure how often the game autosaves the player data.
09local AUTOSAVE_INTERVAL = 60
10 
11-- Number of times we can retry accessing a DataStore before we give up and create
12-- an error.
13local DATASTORE_RETRIES = 3
14 
15-- Table to hold all of the player information for the current session.
View all 96 lines...

I have tried using a function to print out the results, but I end up getting an empty array or nil. So what Can I do to see all the data within the DataStores. Anyways, the goal is to print out all the information within the datastore.

2
Ah another reason why I took a break off this site, nowadays no one wants to do anything time consuming, if you want someone to help you, try shortening the script to where you think the error is, either you do that, or "tl;dr" EzraNehemiah_TF2 3552 — 9y

Answer this question