PlayerRemoving (Event)

From Legacy Roblox Wiki
Revision as of 02:00, 20 January 2012 by >MrNicNac
Jump to navigationJump to search
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)