Hello, I am trying to make a feature where the amount of an item is tracked/saved and displayed across all servers. Similar to this:

What would the best way to go about this be? I’m aware I need to use the MessagingService to communicate across servers but if every server is constantly adding data how can I avoid saving data too frequently or losing data due to a mismatch in servers with the data.
You could have it update on a timer.
local waitTime = 600 -- 10 Minutes
while true do
task.wait(waitTime - (os.time() % waitTime ))
end
This will execute on a 10 minute interval on every server, even if they start at different times.
1 Like