PlayerRemoving (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Mindraker
mNo edit summary
>Mindraker
mNo edit summary
(No difference)

Revision as of 00:39, 2 November 2008

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)