This script example show how to save the data of a player.
Since this does not work for players that are not logged in, I’ve added a message to guest users on join that nudges them to create an account.
try here
The relevant data save and load scripts can be found in player joins and player leaves.