PlayerRemoving (Event): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy It is AFTER, a mistake started by Anaminus |
>Emess No edit summary |
||
Line 3: | Line 3: | ||
|arguments = [[Player]] ''player'' | |arguments = [[Player]] ''player'' | ||
|description = Fired right before the player leaves the game. | |description = Fired right before the player leaves the game. | ||
|object = | |object = Players | ||
|}}</onlyinclude> | |}}</onlyinclude> | ||
|} | |} |
Revision as of 18:20, 3 April 2011
|
Example
local function onPlayerLeaving(Player) print(Player.Name.." is leaving the game!") end game.Players.PlayerRemoving:connect(onPlayerLeaving)