How to save user created notes across the servers + forever?

Hello!

I’ve been thinking of adding note mechanic in my vibe game (like from this game: Leave a Note - Roblox), and I’m not entirely sure how to do that.

So, i’ve been reading through forum posts created before me and I still didn’t quite get an answer, I did understand that I need to use “MessagingService” but I couldn’t even find a good tutorial on how to use it (which is my main issue)

and as for saving the notes itself, I suppose I need to have a folder that will have the notes in it and save it through DataStore, but that’s the issue because usually DataStores are used for specific player values???

Long story short, it is quite a puzzle for me, I would appreciate explanation on MessagingService and how to store the notes itself, maybe my theory isn’t even right in the first place.

Thanks in advance!

1 Like

So, every x amount of minutes you could send a message with the contents of the notes, and the position of the note, then the other servers will get that message, and you could clone a blank note from ServerStorage and set the position and text to their respective values from the message. Then, just apply this for all notes placed since the last update.

could you show an example on how to do so? once again, I don’t quite get how does MessagingService works

I am on mobile right now, so I cannot provide code.
You can begin receiving messages from a topic using :SubscibeAsync().You can send a message using :PublishAsync(). When a message is sent in a topic, the callback is called. So, to make a global announcement you could have code that subscribes to a topic. The callback would make a system message with the text being the message.
Since every server would be subscribed to the topic,
If you published a message to the topic it would make a global announcement.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.