PlayerRemoving (Event): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>SCARFACIAL This had PlayerAdded in the example rather than PlayerRemoving |
>SCARFACIAL This had PlayerAdded in the example rather than PlayerRemoving |
(No difference)
|
Revision as of 02:24, 2 March 2012
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)