Can I rely on BindToClose to fire all the time, even in rare circumstances where a server may crash (for instance, due to memory overloading)?
1 Like
Nothing is 100% reliable in this world…
Just remember that Roblox was down for 5 full days recently…
If you are looking to save your data in the DataStore, you can choose to do it in Players.PlayerRemoving or even create a timed auto-save.
2 Likes
BindToClose() is purposed towards server shutdowns so I’d consider it the safest bet/option to use if needing to save player data in such a situation.
BindToClose does not fire when a server crashes, it only fires when an instance is closing down either because there’s no players in it or because the developer closed the instance.
5 Likes