:Disconnect() is supposed to "Disconnects the Roblox client from the given server. The associated player, if any, is removed on the server. Nothing happens on the client." AKA disconnect a player from the game.
So I used it in a simple script that disconnects the person from the game when they click a gui button:
script.Parent.MouseButton1Click:connect(function()
game.Players.Player1:Disconnect()
end)
But when fired, it gave me "Disconnect is not a valid member of Player". So if that's not how I use the method, then how do you?

3 comments
What does Protected mean?
Protected means only the Core Scripts inside of ROBLOX are allowed to run the command.
Exactly.