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

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

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

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

2 comments

0

It doesn't work like normal DataStore.

0

DataStore2 is using different API even though DataStore2 is still using DataStoreService. Thanks for your answer though!

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