I looked on the wiki for the PlayerRemoving event and it says it runs whenever a player leaves the game. I'm not sure how specific it is, does this mean leaving the game or leaving the place?
I'm wondering because I need this to run whenever a player is being teleported to a different place in the same game.
The PlayerRemoving event fires on a Place when you leave the Place, indiscriminately.
It doesn't matter whether you click X or are teleported to another Place within the same Game; as long as you are leaving one instance of a Place, the PlayerRemoving event will be fired.