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

What does this sentence on data storing mean?

Asked by 5 years ago

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.

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 Sulu710 142 — 5y

1 answer

Log in to vote
1
Answered by
xXLuka_XD 103
5 years ago
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.

Ad

Answer this question