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

[CLOSED] How do I check player's data in DataStore2?

Asked by 3 years ago
Edited 3 years ago

Hello! I've been learning DataStore2 for the past couple days and I've came to a question: How do I check if player's saved data is less/greater than current one?

Any explanation would be appreciated! Thanks in advance.

[CLOSED] After messing around with it more, I found a way to do it.

1 answer

Log in to vote
0
Answered by 3 years ago

Now, I've never use DataStore 2 before but i'm guessing it would be like a normal DataStore.

local DataStore = game:GetService("DataStoreService")
local Data2 = DataStore:GetDataStore("Something")

local Data = Data2:GetAsync("Something")

if Data then
    --if there is data
end
0
It doesn't work like normal DataStore. Feelings_La 399 — 3y
0
DataStore2 is using different API even though DataStore2 is still using DataStoreService. Thanks for your answer though! Feelings_La 399 — 3y
Ad

Answer this question