Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to use the new string kick method?

Asked by 9 years ago

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.

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 TheeDeathCaster 2368 — 9y

2 answers

Log in to vote
1
Answered by
woodengop 1134 Moderation Voter
9 years ago

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.

Ad
Log in to vote
-2
Answered by
funyun 958 Moderation Voter
9 years ago
game.Players.Player:Kick("rip")
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. TheeDeathCaster 2368 — 9y

Answer this question