I am aware of what your question is but Roblox doesn’t have a solution for that. Crashing a player is hardly a solution as that crashes their whole “Roblox Player” application and freezes it making it hard to immediately close out of it. It isn’t a player friendly alternative to just avoiding a kick message.
That can work it’ll just tell the Player a message saying they were removed from the DataModel with an error code and asking them to leave or reconnect.
The leave button uses the game:Shutdown() local function, which is locked behind CoreScripts. Unfortunately, you can’t close the game without a crash or a kick message. Smart UX on Roblox’s half, limiting UX on our’s.