I have seen this in games like Miners Haven. It shows a gui before the server shutsdown. Same thing happens when your about to shutdown a game with hd admin. What I would like to know is how you can use a script to see when this is about to happen.
COMMUNITY QUESTION
How would I detect if a server is about to shutdown?
1 answer
Hello sir you can Detect if the server is shutting down using BindToClose function (https://developer.roblox.com/api-reference/function/DataModel/BindToClose) There are scripts called soft shutdown you can search it in roblox studio they are a great demonstration of how it works. Also sry for bad english.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
That's because they decided to initiate a "shutdown" so they know it will happen, that being said there is no native support to do this, but you can for example show everyone a gui then kick everyone and keep kicking people that join until it shuts down by itself. You can however trigger some code to happen during the actual shutdown with
BindToClose.