I have default value of 100
but when person joined
it loads the value to 0
because of the GetAsync()
how to check if data isn’t saved yet (player is new)
1 Like
GetAsync() returns nil if the player has no data saved, so you can do this:
if DS:GetAsync(key) ~= nil then
else
end
4 Likes
thank you for the help, It was greatly appreciated