PlayerRemoving (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
Fixed formatting
>Camoy
Fixed formatting
(No difference)

Revision as of 15:20, 21 June 2010

PlayerRemoving ( Instance Player )
Description Fired after a player leaves the game.
Member of: [[RBX.lua.Players (Object)|Players]]
Example
function onPlayerLeaving(Player)
print(Player.Name .. " has left the game!")
end

game.Players.PlayerRemoving:connect(onPlayerLeaving)