Skip to content

KitStdCharacter

Character utilities.

function KitStdCharacter.getCharacter(): types.Character

Returns current character if it exists. Otherwise, wait for it to be added.

`


function KitStdCharacter.getHumanoid(): Humanoid

Returns the character’s Humanoid if it exists. Otherwise, waits for it to be added.

`


function KitStdCharacter.getHumanoidRootPart(): BasePart

Returns the character’s HumanoidRootPart if it exists. Otherwise, wait for it to be added.

`


function KitStdCharacter.getMaybeCharacter(): types.Character?

Returns the local player’s character if it exists

`


function KitStdCharacter.getMaybeHumanoid(): Humanoid?

Returns the character’s Humanoid if it exists.

`


function KitStdCharacter.getMaybeHumanoidRootPart(): BasePart?

Returns the character’s HumanoidRootPart if it exists.

`


function KitStdCharacter.isCharacter(character: Instance): boolean

Returns true if a model is a character

`


function KitStdCharacter.isCharacterAlive(): boolean

Returns true if the character is alive.

`


function KitStdCharacter.isFromCharacter(instance: Instance): boolean

Returns true if the given instance is a descendant of the local character.

`


function KitStdCharacter.isFromMaybeCharacter(instance: Instance): boolean

Returns true if the character exists and the given instance is a descendant of the local character.

`


function KitStdCharacter.isLocalPlayerCharacter(character: Instance): boolean

Returns true if a model is the local player’s character

`


function KitStdCharacter.waitForCharacter(): types.Character

Waits for and returns the local player’s character when it is added

`