We’re introducing Meta accounts in August 2022: a new way to log into VR devices that doesn’t require a Facebook account. Learn more

WHEN PLAYER EXITS THE WORLD

Event that runs when a player leaves the world.

Appearance in Composition Pane
Description

Commands below when world is exited by player will execute when a player leaves the world. When editing your world, the when player exits the world event will execute when a player enters build mode.
Parameters

player
The player who exits the world.


PREREQUISITE READING

WHEN PLAYER ENTERS THE WORLD precedes this tutorial


Example 1: Track number of players

This script decrements playercount.