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

Script isn't saving player data to data store, have i referenced it correctly? [closed]

Asked by 4 years ago
Edited 4 years ago

hi can anyone help figure out why this isnt saving the data?

001-- Data Storage
002local DataStoreService = game:GetService("DataStoreService")
003 
004local playerData = DataStoreService:GetDataStore("PlayerData")
005 
006 
007 
008local function onPlayerJoin(player)  -- Runs when players join
009 
010    local leaderstats = Instance.new("Folder"--Sets up leaderstats folder
011 
012    leaderstats.Name = "leaderstats"
013 
014    leaderstats.Parent = player
015 
View all 115 lines...

Closed as Non-Descriptive by JesseSong

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?