Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to stall a player from leaving the game?

Asked by
sheepposu 561 Moderation Voter
5 years ago

I know thats you can use "BindToClose" to stall a server from shuting down while it completes a function, but is there a module like that for players.

0
I think what you would want is game.Players.PlayerRemoving. Divistern 127 — 5y
0
I'm using that, does it stall a player leaving till the player is out of the game. sheepposu 561 — 5y
0
It doesnt stall ben0h555 417 — 5y

1 answer

Log in to vote
1
Answered by
ben0h555 417 Moderation Voter
5 years ago

No, you have to do everything as Players.PlayerRemoving fires, you cannot stall the player from leaving the game if it discconects, so make sure your code runs fast enough to do what it needs to.

Ad

Answer this question