PlayerRemoving (Event)

From Legacy Roblox Wiki
Revision as of 14:24, 21 June 2010 by >BlueTaslem
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)