Meta accounts are here: you can create a Meta account to log into VR devices. Learn more

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.

PREREQUISITE READING

OBJECT RESPAWN SCRIPT precedes this tutorial


Important

  • 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.

Next Up