If I want to load user data, should I use UpdateAsync() or GetAsync()?
GetAsync()
UpdateAsync() is used to update data and would be used in place of SetAsync()
To load in data, you can only use GetAsync()
As @Konechou is likely to be new to datastores ill explain them a bit.
1st things first is you always need to get the service like so
local DSS = game:GetService(“DataStoreService”)
2nd is to get the store you want to save or get data from
local Store = DSS:GetDataStore(“StoreName”)
3rd is to save or load data, I always use setasync() or getasync() regardless for my own reasons.
local GetData = Store:GetAsync(“Player”)
Store:SetAsync(“Player”,Data) – Data Is returned when you use GetAsync()
A key thing to note is that both store name and what most people see as the player identifier are string. As it is string there is no actual need to bind the data to a player its just the way most people use it. I recommend using pcalls() to save and get data as it prevents data loss when done correctly.