I am making a game and i want to give every player 100$ at the end of every round and then have the game save that amount for incase they decide to leave and come back later but data stores have become confusing to me could someone please help me out here
The following should give you a good example to follow:
local DSS = game:GetService("DataStoreService") local plrDS = DSS:GetDataStore("PlayerValues") function saveData(plr) plrDS:SetAsync(plr.userId .. "_key", plr.Cash.Value) end