Hello developers!
I am trying to make a mailbox system but I have no idea how and where to start with. Is there a way to save a message in the receiver when the sender clicked send the message and that message will be loaded in when the receiver joined the game?
Many thanks!
Have you looked for solutions?
-
What do you want to achieve? Keep it simple and clear!
-
What is the issue? Include screenshots / videos if possible!
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
-- write the code you made here
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
Try using DataStores.
You can make a folder inside a player that’s called “Messages” and make everything that gets added into that folder save. Then you can make a “Send” button that adds something to that player’s “Messages” folder.
(If the player is not on the same server, update their datastore.)
Also GetUserIdFromNameAsync() might be useful.