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

Is it possible to close the client without crashing it?

I wish to have a user click a button, and that would close the client window.

E.g.

local btn = script.Parent
btn.MouseButton1Down:connect(function()
	--Close client
end)

Is this possible?

2 comments

1

Nope.

0

The closest thing you have is Kicking them from the Server using a RemoteEvent or RemoteFunction.

3 answers

Unfortunately, it's not possible. But you can instead use Kick on the player and disconnect their client from the game.

game.Players.LocalPlayer:Kick("The message that the player sees")

It's Not Possible But You Can Kick Note! Only Works In Normal Script! player:Kick("IDK Why But I Want To Kick You") As This Needs To Be In A Normal Script You Need To Define player Variable In The Way You Want Because LocalPlayer Does Not Work! Put Whatever You Want Inside The ("")

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