So Im trying to save a data using set async() but i am wondering if i should put bindtoclose inside a player removing function or independantly.
COMMUNITY QUESTION
Should I put game:BindToClose inside a player removing function or independantly?
1 answer
Outside, there is no reason to have it in.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
game.Players.PlayerRemoving:Connect() and SetAsync() are fine.
out side but when server shuts down the binstoclose can link to player removing to save ur data else the last player is not saved befor the server shuts down