example... you click on it, roblox closes how you do that ?
✓ ANSWER ACCEPTED
How do you make an exit gui that disconnects you ?
1 answer
✓ Accepted answer
You could use Player:Kick() to disconnect the player from the server, however this wont close the window.To close out of the window, they'd have to do that manually. An example of how that'd work is like this (In a LocalScript inside of the Gui):
local Player = game.Players.LocalPlayer --Only works in Client-Side LocalScripts
script.Parent.MouseButton1Click:connect(function()
Player:Kick("Custom Message") --Shows message when kicked, or can be empty for default message.
end)
Anyways, this should work. If you have any further questions, please leave a comment below. Hope I helped :P
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
atleast... someone who doesn't say "request" thank you! :)
No prob, glad I could help.
Part of ROBLOX's core gui allows for you to exit out of a window as part of a gui element. However, to my knowledge this is not possible for ROBLOX users which may be understandable considering a exploiter could close the Roblox Player of all players in the server.
Yup