Need Help Creating A DataStore

Hello DevForum Members I Am Asking For Your Help On A DataStore

I Have Tried Multiple Scripts So I Am Asking For Your Help My LeaderStats Are “Strength” And “Cash” Goodbye And Thank You.

1 Like

There is a page on the Developer Hub about this


Please, do searches!

Firstly, you should start of by looking at Articles/Pages on the Developer Hub, and, since you’re new, take a look at the Guidelines page(If you haven’t already) of the DevForum. And, clarify what you’re looking for, #help-and-feedback:scripting-support and probably all subcategories do have a template.

But, to do what you want, you should firstly address DataStoreService:

local DSS = game:GetService("DataStoreService")

And then, use DataStoreService:GetDataStore():

local DSS = game:GetService("DataStoreService")
local DataStore = DSS:GetDataStore("DataStoreName")

From what I understood of :GetDataStore(), it searches for a DataStore, with the given argument, and, if it doesn’t exists, it will create one. Correct me if I’m wrong.

1 Like