CharacterAdded (Event): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Emess No edit summary |
>Legend26 No edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude>{{Event|name = CharacterAdded | |||
|arguments = [[Instance]] ''character'' | |arguments = [[Instance]] ''character'' | ||
|description = Fired when a character spawns or respawns. | |description = Fired when a character spawns or respawns. | ||
|object = Player | |object = Player | ||
|}}</onlyinclude> | |}}</onlyinclude> | ||
{{clear floats}} | |||
== Description == | == Description == |
Revision as of 02:29, 24 January 2012
![]() | |
Description | Fired when a character spawns or respawns. |
---|---|
Member of: | Player |
Description
The character will be a model with Humanoid, all body parts, scripts, and joints. The model will be completely loaded when triggered by game.
Example
local function onRespawn(character) --do something on respawn end local function onPlayerEntered(newPlayer) newPlayer.CharacterAdded:connect(onRespawn) end game.Players.PlayerAdded:connect(onPlayerEntered)