I wish to have a user click a button, and that would close the client window.
E.g.
1 | local btn = script.Parent |
2 | btn.MouseButton 1 Down:connect( function () |
3 | --Close client |
4 | 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 ("")