How to update multiple values in all running servers?

I’m working on a RPG game, where NPCs will only buy a certain amount of items every hour, so that players can’t just sell thousands of the same items to the same NPC, and are encouraged to find NPCs who are buying those items, or those with better prices.

I want the purchase limit to update between servers, so that when an NPC buys many items from you, you can’t just swap servers, and so that players in other servers will also be affected by players selling too many items to the same NPC.

I thought about using MessagingService, however it can only send one value, which would only work for updating one items stock. The updating doesn’t have to be quick, it can be at a few minutes, but the quicker the better obviously. What methods could I use to do this?

I’ve never used this, but perhaps look into MemoryStoreService?
From its description, it seems to allow for quick and easy communication between server instances.
https://developer.roblox.com/en-us/articles/memory-store

1 Like

This is the first I’m hearing of it, but it sounds perfect! Thank you.

1 Like