PlayerRemoving (Event)

From Legacy Roblox Wiki
Revision as of 15:58, 29 August 2010 by >Camoy (Format/example)
Jump to navigationJump to search
PlayerRemoving ( Instance player )
Description Fired after a player leaves the game.
Member of: [[RBX.lua.Players (Object)|Players]]
Example
local function onPlayerLeaving(Player)
  print(Player.Name.." has left the game!")
end

game.Players.PlayerRemoving:connect(onPlayerLeaving)