Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to use the new string kick method?

I am not requesting I am asking where I would learn this, and what I am talking about is when you shutdown you get like You have been shutdown by RDS. or something.

1 comment

0

The 'Kick' method has a Built-In, optional Argument that allows a custom Message for the Player when they are Kicked. :P WIKI Documentary on the 'Kick' method: http://wiki.roblox.com/index.php?title=Kick

2 answers

✓ Accepted answer

The Kick method, kicks the player by disconnecting the client, You also have a optional parameter message.

-- kicking all
for _,player in pairs(game.Players:GetPlayers()) do
	player:Kick("You have been kicked by Blah")
end

--kicking cetain players
game.Players.NameHere:Kick("You have been kicked by Blah") -- string message

Note: The kick method should be used in a script to work online.

game.Players.Player:Kick("rip")

1 comment

0

Do not simply post code; Add some sort of Explanation behind your Answer, otherwise the user may not be-able to understand the reason behind your Answer.

This discussion is preserved as it was. New answers, comments, and votes are closed.