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