PlayerRemoving (Event)

From Legacy Roblox Wiki
Revision as of 08:30, 28 January 2012 by >JulienDethurens
Jump to navigationJump to search
PlayerRemoving ( Player player )
Description Fires when a player is leaving the game.
Member of: Players


Example

local function onPlayerLeaving(Player)

 print(Player.Name.." is leaving the game!")

end

game.Players.PlayerRemoving:connect(onPlayerLeaving)