PlayerRemoving (Event)

From Legacy Roblox Wiki
Revision as of 18:06, 29 August 2010 by >Camoy (It is AFTER, a mistake started by Anaminus)
Jump to navigationJump to search
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)