Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What does this sentence on data storing mean?

Can anybody explain to me what does this sentence mean??

local DataStore = game:GetService("DataStoreService"):GetDataStore("Tutorial3816310153")

I got it from a tutorial but he doesnt explain this part.

https://www.youtube.com/watch?v=UryewLjm9qg [Video link]

"GetDataStore("Tutorial3816310153")" <-- This part is the most concerning one.

2 comments

0

game:GetService() gets the data store service used to make data stores, and :GetData store is a function of the data store service that gets the specified data store for the script to be able to access the data in the data store. So basically all it does is gets the data store and sets it as a variable to so you can do stuff with it such as accessing and adding data

1 answer

✓ Accepted answer
local DataStore = game:GetService("DataStoreService"):GetDataStore("Tutorial3816310153")

This just means that he is getting the datastore, so he can set up the saving and loading system now, or in near future.

This discussion is preserved as it was. New answers, comments, and votes are closed.