How do I make a datastore that saves a leaderstat?

This thread is already way too long but I’ll just put in my post.

For the most direct answer follow Post 12

Post 12

Only thing you should add is a pcall surrounding the web calls (Async)


If you want to use a Data Storage module, I would highly recommend ProfileService over any other modules like DataStore2. DataStore2’s single purpose has been deprecated since the release of DataStore v2 and DS2 is unsupported.

ProfileService is fully supported and gets constant updates, as well as having many vital features like session locking.