PERSISTENT PLAYER VARIABLES
Persistent Player Variables are an incredible tool for keeping track of player stats.
From Settings in your Build Menu, go to the Player tab, click on New, and we will call this one score. After clicking create, we can now use this variable in our scripts. These are number variables tied to each player, that start at zero. And unless reset, will persist between sessions of your world. This means you can track high scores, money, or even create save points.
OBJECT RESPAWN SCRIPT precedes this tutorial
Player Variables can only be used by Default scripts, and are not available for use in Local scripts.
Only the world creator will be able to create Persistent Player Variables.