Everytime im inserting UserId into the Table because so that when players change their names, there is no bug. When im inserting the “player” (not “player.Name”) into the Table, and players change their name will there be a difference then to UserId?
No, the UserId is a unique number to a player and remains the same.
Does Player also remains the same?
If you are wanting to store data for a player in a datastore you can’t serialize instances (you can’t store objects), in that case, you will want to use UserId. Every instance in the game has its own ID that is different every time they are created so the player object is different every time they join.
2 Likes
Okay thanks
1 Like
UserId remains the same as that is the unique identifying code for the player on Roblox. It will never change, even if the Username, Nickname, etc are changed.