Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you make an exit gui that disconnects you ?

example... you click on it, roblox closes how you do that ?

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

4 comments

0

atleast... someone who doesn't say "request" thank you! :)

0

No prob, glad I could help.

1

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.

0

Yup

This discussion is preserved as it was. New answers, comments, and votes are closed.