Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Should I put game:BindToClose inside a player removing function or independantly?

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.

2 comments

0

game.Players.PlayerRemoving:Connect() and SetAsync() are fine.

0

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

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.