Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is it possible to close the client without crashing it?

Asked by 8 years ago

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?

1
Nope. User#11440 120 — 8y
0
The closest thing you have is Kicking them from the Server using a RemoteEvent or RemoteFunction. adark 5487 — 8y

3 answers

Log in to vote
1
Answered by 8 years ago

No, this is not possible.

Ad
Log in to vote
0
Answered by 8 years ago

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")

Log in to vote
0
Answered by
Filipalla 504 Moderation Voter
8 years ago
Edited 8 years ago

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 ("")

Answer this question