StarterPack that requires access to the player's character, use So if you're writing a LocalScript under the StarterGui or Because of this, if the Character already exists, you shouldĬheck to make sure that the Character's parent is not nil before using it. Still refers to a model, but that model's parent is nil and it has beenĭestroyed. StarterPack into a player's Backpack or PlayerGuiĪre often run before the old Character model is deleted. Note: LocalScripts that are cloned from StarterGui or Avoid using Instance:GetPropert圜hangedSignal() Player.CharacterRemoving event to detect when the character isĪbout to despawn. Player's character properly loads, and the Use the Player.CharacterAdded event to detect when a Initially, this property is nil then set when the player's character first Players.CharacterAutoLoads is true, but can be manually loaded The Character property contains a reference to a Model containingĪ Humanoid, body parts, scripts and other objects required for
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |