Will Players.PlayerRemoving consistently fire?

Just out of curiosity, outside of shutdowns/migrations to latest update by the developer, will Players.PlayerRemoving consistently fire for the last player leaving a server?

To extend the question a bit, if you were to call a service on PlayerRemoving (e.g. DataStoreService, MessagingService) will the server be consistently able to finish whatever it’s doing before shutting down?

1 Like

Not consistently it looks like. I have seen occurrences where the callback doesn’t finish or it just never fires.

That is what game:BindToClose is for.

It does in my experience, but again, That is what game:BindToClose is for.

I have a tutorial on this.

3 Likes