---
title: "Discussion on \"A DataStore checklist for Roblox beginners: the 8 mistakes that wipe player data\" | Hashnode"
description: "Discussion on \"A DataStore checklist for Roblox beginners: the 8 mistakes that wipe player data\". Player data in Roblox rarely disappears because DataStoreService is \"broken.\" It disappears because a save ran with the wrong contents, or did not run at all. The eight mistakes below are the ones I k"
url: "https://hashnode.com/posts/a-datastore-checklist-for-roblox-beginners-the-8-mistakes-that-wipe-player-data/6af5f4a98125dcfea3d70458"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A DataStore checklist for Roblox beginners: the 8 mistakes that wipe player data](https://kelvaro.hashnode.dev/a-datastore-checklist-for-roblox-beginners-the-8-mistakes-that-wipe-player-data?utm_source=hashnode&utm_medium=feed)

Player data in Roblox rarely disappears because DataStoreService is "broken." It disappears because a save ran with the wrong contents, or did not run at all. The eight mistakes below are the ones I k

6d ago · 8 min read · kelvaro.hashnode.dev  
Read the article

-   [#roblox](https://hashnode.com/tag/roblox)
-   [#lua](https://hashnode.com/tag/lua)
-   [#gamedev](https://hashnode.com/tag/gamedev)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Kelvaro](https://hashnode.com/@kelvaro)

@kelvaro

  
[View profile](https://hashnode.com/@kelvaro)

Local tools for creators and Roblox devs

## Responses 2

Markdown supported · ⌘↵ to post

[Alex Yu](https://hashnode.com/@alexyu)

[5d ago](https://hashnode.com/posts/a-datastore-checklist-for-roblox-beginners-the-8-mistakes-that-wipe-player-data/6af5f4a98125dcfea3d70458/comment/6af6d6bf2fcd624dfa1c71cb)

The saving-after-a-failed-load one got me once on a small project, defaults got written over a real save and I spent an evening wondering where the data went. Gating saves behind a loaded flag is such a simple fix. Also like that you moved the load into UpdateAsync, I was still doing GetAsync then SetAsync before reading this.

[Kelvaro](https://hashnode.com/@kelvaro)

[5d ago](https://hashnode.com/posts/a-datastore-checklist-for-roblox-beginners-the-8-mistakes-that-wipe-player-data/6af5f4a98125dcfea3d70458/comment/6af6d6bf2fcd624dfa1c71cb#reply-6af75d45d1431aba792e7d6f)

Glad it helped, that evening of hunting for missing data is exactly how most of us learn this one. One thing worth adding to the loaded flag: only set it after the load actually succeeded (pcall returned true), and leave it false on any error so the player just isn't saved that session instead of getting defaults written over their real data. If you later run into players joining a new server before the old one finishes saving, session locking is the next step.
