PlayerRemoving (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
Format/example
>Camoy
Format/example
(No difference)

Revision as of 15:58, 29 August 2010

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

game.Players.PlayerRemoving:connect(onPlayerLeaving)