With today’s patch, you can now access the UserId of a Player!
Previously, since UserId wasn’t available, you had to rely on Player.Name when saving or loading player data (such as level info) with DataStore.
However, using Player.Name is unreliable in cases where users change their nickname.
We now recommend switching to Player.UserId for consistent and permanent player identification.
Example:
-
Before:
store:SetAsync(player.Name, currentValue) -
After:
store:SetAsync(player.UserId, currentValue)
This small change can help ensure your game data stays safe and accurate over time!
Happy coding!
— OVERDARE Studio Team