Heyy! I’m currently wondering how I can use ordered datastores to track a player’s weekly activity and post it at the end of the week to a Trello list. Any help would be appreciated! Thank you!!
you can use a normal datastore and track join/leave times using a table then sort and post that. You can clear the datastore after posting it or keep it with a key such as UserId…WeekNumber
Mind giving me an example? How would I add an activity to the total?
Use table.insert or use a dictionary to add to the total.
table.insert:
-- gather data from datastore and set Data to that
table.insert(Data.Activity, {Time = time, Action = action})
-- set the datastore to the new value of Data
Dictionary:
-- gather data from datastore and set Data to that
Data.Activity[Time] = {Action = action, OtherAction = value}
-- set the datastore to the new value of Data