PlayerRemoving (Event)

From Legacy Roblox Wiki
Revision as of 21:54, 6 August 2008 by >Anaminus (PlayerRemoving moved to PlayerRemoving (Event))
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)