I just made this, because recently the Shut Down All Servers option in studio has been REALLY broken for no reason, and so I was like: “Yeah whatever lets do it it’s simple”
It’s really easy to setup, theres a table, called AllowedUsers, which you put the users userId’s which you wanna allow to have shut down server permissions.
After that, you only need to require it via another script, no functions, no anything, it will just load it and start listening to players which have the perms.
For someone which wants to shut down all servers, they can just type: “/shutdownAllServers” on chat, and boom, every single server will be wiped!
There’s also “/reconnectAllPlayers” which makes every single server teleport every single player into a new server;
I also have a little system, in the case that something goes wrong and the module can’t listen to shut down requests, it will move all players to a different server;