PlayerRemoving (Event)

From Legacy Roblox Wiki
Revision as of 15:20, 21 June 2010 by >Camoy (Fixed formatting)
Jump to navigationJump to search
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)