Hi,
So today i bought a DataStore Editor and i don’t understand what should i type there
Place ID - is place id
What is DataStore name? its this? game:GetService("DataStoreService"):GetDataStore(DataStoreName?)
Scope? Scope is user id or what?
And what is Key?
i watched authors tutorial but still dont understand
Thanks for attention!
jsourj
(sour)
June 24, 2020, 6:04pm
#2
The key is what you ‘:SetAsync()’ the data to, for example the playerid could be the key
Hmm
Place ID - My Place ID
DataName - “Gold”
Scope - “player id”
Key - player id (because i use user id as a key)
But it didnt show my data.
Heres parts of my data script
local d = DataStore:GetDataStore("Gold") -- DataStore Name
d:SetAsync(player.UserId, player.leaderstats["Gold"].Value) -- player.UserId Key?
i have no idea why this dont show how much i have gold
In your case, the datastore name would be Gold. The scope is blank (leave it empty). Scope is an optional parameter which you’re not currently using. Your key is your player id, which for you is 504241022.
1 Like