Character (Property)

From Legacy Roblox Wiki
Revision as of 20:54, 27 December 2010 by >LPGhatguy (Added "clear floats" to keep everything in-line)
Jump to navigationJump to search


Character
Property Model Character
Description A model containing the parts, joints, and scripts for character.
Member of [[RBX.lua.Player (Object)|Player]]



Description

The Character property is initially nil. But is set when the Character is spawned.


Example:

function onPlayerAdded( player )
print( player.Character ) -- nil
player.CharacterAdded:wait()
print( player.Character ) -- set (.Name==player.Name)
end
Game.Players.PlayerAdded:connect( onPlayerAdded )

See Also

CharacterAdded PlayerAdded