Commands below the when trigger is exited by player line will execute when a player exits the trigger the script is attached to. The trigger must be configured to detect players.
Parameters
player
The player who exited the trigger.
PREREQUISITE READING
WHEN TRIGGER IS ENTERED BY PLAYER precedes this tutorial