Hello dear scriptinghelpers community! When the Player in one of my games dies he's supposed to get a 'You died' screen like in Minecraft.

I would like to implement a 'Leave game' button, but the 'Youv'e been kicked' GUI annoys. After reading a few of the CoreScripts I found the DataModel's ´Shutdown function, but developers can't use that. Is there any other way to disconnect a Client or close it?

3 comments

0

i have tried to do game.Players.playernamehere:destroy, in studio in the top right the name dissappears, but does not dissconnect. i have only tried in studio, but it may dissconnect in real Roblox, i'm not sure.

0

You can use OOP to create a custom function that forces the player to leave.

0

@BashCaster How would OOP help me doing that?