Kick
Function of: Player
Returns: Void
Tags: instance
Disconnects a player with an optional message
Parameters
Name | Type | Description |
---|---|---|
msg | String | The optional message the player receives when disconnected |
Example
local someone = Players.GetPlayerByUsername('someone') if someone ~= nil then someone:Kick('You have been kicked for breaking the rules!') end