Hello! How do I make a disconnect reward system like in Pixel Gun Tower Defense? If you don’t know what I mean, if your in a match and you disconnect from the game, when you rejoin you will get the rewards. Or a system where when you disconnect from a match you can just say /rejoin to rejoin the match. Thanks!
You could have a datastore that updates every 10 seconds or something, or even just when the player leaves, that stores the reward the player would get. When the player gets to the end of a match, clear this datastore.
When a player rejoins, check if the datastore has anything stored, then if so, process what is stored. Don’t forget to clear the datastore afterwards though
You can save upon Players.PlayerRemoving
.