CharacterAdded (Event): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Emess No edit summary |
>Emess No edit summary |
||
Line 21: | Line 21: | ||
game.Players.PlayerAdded:connect(onPlayerEntered) | game.Players.PlayerAdded:connect(onPlayerEntered) | ||
</pre>}} | </pre>}} | ||
[[Category:Events]] |
Revision as of 02:26, 11 May 2011
|
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)