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

DataStore Not Saving/Loading?

Asked by 10 years ago

It does not print any error whatsoever. Script is in ServerScriptStorage of course I added prints so it just prints the values it just prints "" and "0" "" for the StringValue and "0" for the NumberValue Yes I edited the values of the items so it has something to save...

001wait()
002local DataStoreService = game:GetService("DataStoreService")
003local SafeStore = game.ReplicatedStorage:FindFirstChild("PlayersData")
004game.Players.PlayerAdded:connect(
005function(Player)
006    local PlayerStore = DataStoreService:GetDataStore(tostring(Player.userId), "PlayerData")
007    -----
008    ----Start Of Client Store
009    local PlayerTag = Instance.new("StringValue",SafeStore)
010    PlayerTag.Value = Player.userId
011    PlayerTag.Name = (Player.userId)
012    print(PlayerTag.Name)
013    ------
014    local DataStore = Instance.new("Folder",PlayerTag)
015    DataStore.Name = "Data"
View all 133 lines...

Answer this question