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?
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?
No, this is not 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 ("")
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Nope.
The closest thing you have is Kicking them from the Server using a RemoteEvent or RemoteFunction.