Thx you ;) im you understand)))
You're calling :GetDataStore()
on a DataStore object in functions SaveData1
and SaveData2
. You already got the datastores from the DataStoreService in the first few lines and defined them as variables moneyData
and swingsData
so all you have to do is moneyData:SetAsync(playerid, value)