Is there any clean way to exit a player out of your game (just like the Leave Game button does)? Kicking them doesn’t work because it shows a ‘kick’ message and they still have to close out of the client window.
Is there any way to do this? I don’t think there is, but figured I’d ask. My goal is to make the player not need the built-in menu screen as much as possible.
The only method that closes the Roblox client directly is DataModel:Shutdown (found through CoreScript searching). It’s restricted to command bar usage only, so you can’t do what you want, unfortunately. No workarounds as far as I’m aware, maybe someone has something else.
No, there isn’t. The only methods available to do this are locked to core scripts. A little unfortunate, but that in-game menu is there to stay and loom upon your immersion.
“ideally”, yes, but remember that it’s much easier to have bad intentions than good ones,
and obviously, roblox will not take the bet, there has been multiple attempt in trusting developers such as the use of API with Discord,
people abuse of anything as long it’s possible to do.
Its an objective stance for people who have the better intentions in mind, like OP and myself. I don’t mean it as unfortunate that no one can use it.
These functions are locked and for good reason - there wouldn’t be the happiest of moments for allowing developers access to this function, for it could spawn malicious usage. I’m clearly aware.