PlayerRemoving (Event)

From Legacy Roblox Wiki
Revision as of 02:24, 2 March 2012 by >SCARFACIAL (This had PlayerAdded in the example rather than PlayerRemoving)
Jump to navigationJump to search
PlayerRemoving ( Player player )
Description Fires when a player is leaving the game.
Member of: Players


Example

This code will print A player has left: , followed by the player's name, everytime a player leaves: game.Players.PlayerRemoving:connect(function(player) print("A player has left: " .. player.Name) end)


See Also