PlayerRemoving (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>SCARFACIAL
No edit summary
>MrNicNac
No edit summary
Line 1: Line 1:
<onlyinclude>{{Event|name = PlayerRemoving
<onlyinclude>{{Event|name = PlayerRemoving
|arguments = [[Player]] ''player''
|arguments = [[Player]] ''player''
|description = Fired right before the player leaves the game.
|description = Fires before a player is disconnected from a game.
|object = Players
|object = Players
}}</onlyinclude>
}}</onlyinclude>

Revision as of 02:00, 20 January 2012

PlayerRemoving ( Player player )
Description Fires before a player is disconnected from a game.
Member of: Players


Example
local function onPlayerLeaving(Player)
  print(Player.Name.." is leaving the game!")
end

game.Players.PlayerRemoving:connect(onPlayerLeaving)