You still get combat logged if the server shuts down while you're in combat [Unfixable]
in the bugs archive
a idea on how to fix this could be a simple “Global State” boolean (probally could be a simple RemoteFunction ex: isShuttingDown(): bool which clients can then query to check if a server is shutting down
if it is you could eg. not perform the effects of combat logging when isShuttingDown is true
(ofc i have a feeling there is something better then a RemoteFunction but school wifi wont let me check the developer wiki), or mabey a remote event called leave(reason)
and the reason can be a number specifying why the client is forced to leave the game
eg:
0/nil - banned
1 - kicked/warned
2 - shutdown