PlayerRemoving

Fires when a player is about to leave the game server.

Example usage:

Events.PlayerAdded(function (event)
    ChatService.sendMessage(event.player.displayName .. " joined the game!")
end)

Events.PlayerRemoving(function (event)
    ChatService.sendMessage(event.player.displayName .. " left the game.")
end)

Parameters

player: Player

The player that is about to leave the game server.

Last updated