Message System [ ASK ]

So I have made Private Message System , is there a way to send message by using Player ID even if the other player is offline? And later if the other player online , they can check it

you can probably do this easily by using datastores

Yes? But how to make the other player also receive the message we send before when they are on?

Basically have the message system save the data under the receiving player’s userid. Then when a player gets on you can simply load any messages saved under their userid. To get the id of a player that isn’t in the game you can probably use this Players:GetUserIdFromNameAsync

Sending a message to a player that is offline? I don’t think you can do that.

But if you were to make a datastore to save all of those messages that are waiting to be sent, and when a player joins it could check the datastore to see if their ID is present, and if it is then they will receive the text and a possible notification?