Hi, I’m wanting to create a transaction history sort of thing with an ATM System. I just need support on having the transaction history save in a DataStore. So, each Player will have their own Account Number which will be the Key for its DataStore. Then for each action (withdraw, deposit and transfer) it will be logged and saved in the DataStore as a history of the Players action. This is my assumtion of how it would be done but I’m not sure…
local DataStoreService = game:GetService("DataStoreService")
local TransactionHistoryStore = DataStoreService:GetDataStore(KEY)
local History = TransactionHistoryStore:GetAsync("History")
local NewHistory = table.insert(History, "WITHDRAW_5000")
TransactionHistoryStore:SetAsync(NewHistory)
I expect this is not the correct method of doing this but this is just me guessing of how it would work. Thank you in advance.