Character
A table of utility functions for working with the Character that can be used to speed up the process of writing repository scripts for client objects.
Functions
getHitbox
Returns a static hitbox attached to the character based on the provided mode
.
See the documentation on hitbox modes for more information.
carryPart
Makes the character carry the weldTo
part, welding it to the character
and displaying a carry animation on the character. The carry animation
manipulates the character's shoulders directly instead of using an
Animation, so it should work everywhere.
If weldState
is false
, the character will stop carrying the part and
the carry animation will stop.
getCharacter
Character.
getCharacter
(
) →
(
)
Returns a table of character instances, such as:
- The Character itself
- The Character's humanoid
- The Character's RootPart
- The Character's PrimaryPart
When the character respawns, all of the values will update accordingly.