The cleanup button in the original studio window (the one open before starting a local server test) doesn’t cleanup the game properly. It doesn’t fire signals like Players.PlayerRemoving
and doesn’t call game:BindToClose
. This causes an inconsistency where for example player data does or doesn’t save depending on which cleanup button you press.
In the following video, I use HttpService
to verify if PlayerRemoving
/game:BindToClose
are called. I first show it working with the cleanup button in the server window, then show it not working with the cleanup button in the original studio window. You’ll also notice that the client window doesn’t close when clicking the cleanup button in the original window.
Expected behavior
I expect the server and original window cleanup buttons to work the same. They should both properly cleanup the game by running Players.PlayerRemoving
and game:BindToClose
.