How to Access Player data while they're offline?

Hi, I’d like to know how I can access a Player’s data when they’re offline? The way I save their data key is involving their UserId with the key, e.g. "Player.UserId …“keyhere”).

Reason why I’d like to know is for example, If I have a leaderboard system with points, whenever the leaderboard resets I’ll maybe be getting the player with highest points and I’d like to award the player, however if the player isn’t online how can I access their data to tweak it and put the reward in there?

DataStores aren’t tied to players, let alone their online status. Just use GetAsync the same way you would normally when trying to load their data for your offline applications so long as you know the right key to pass and then you can view or manipulate their data as you like.

3 Likes