CharacterAdded (Event): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens No edit summary |
>JulienDethurens No edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude>{{Event|name = CharacterAdded | <onlyinclude>{{Event|name = CharacterAdded | ||
|arguments = [[Instance]] | |arguments = [[Instance]] <var>character</var> | ||
|description = Fired when a character spawns or respawns. | |description = Fired when a character spawns or respawns. | ||
|object = Player | |object = Player | ||
Line 8: | Line 8: | ||
== Description == | == Description == | ||
<var>character</var> will be a [[Model]] with [[Humanoid]], all body parts, scripts, and joints. The model will be completely loaded when triggered by game. | |||
{{Example|<code lua> | {{Example| | ||
This code will make set every player's [[WalkSpeed]] to 25 everytime they respawn: | |||
<code lua> | |||
game.Players.PlayerAdded:connect(function(player) | |||
player.CharacterAdded:connect(function(character) | |||
character.Humanoid.WalkSpeed = 25 | |||
end) | |||
end | end) | ||
</code>}} | </code>}} | ||
[[Category:Events]] | [[Category:Events]] |
Revision as of 07:08, 26 January 2012
![]() | |
Description | Fired when a character spawns or respawns. |
---|---|
Member of: | Player |
Description
character will be a Model with Humanoid, all body parts, scripts, and joints. The model will be completely loaded when triggered by game.
Example
{{{1}}}