PlayerRemoving (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
It is AFTER, a mistake started by Anaminus
>Camoy
It is AFTER, a mistake started by Anaminus
(No difference)

Revision as of 18:06, 29 August 2010

PlayerRemoving ( Player player )
Description Fired right before the player leaves the game.
Member of: [[RBX.lua.Players (Object)|Players]]
Example
local function onPlayerLeaving(Player)
  print(Player.Name.." is leaving the game!")
end

game.Players.PlayerRemoving:connect(onPlayerLeaving)