Class · inherits Motor
Motor6D
Creates an animatable joint between two BaseParts. Superseded
by AnimationConstraint for avatar/character rigs. Motor6D is no longer
used by default for player characters when
AvatarJointUpgrade is enabled.
About Motor6D
Description
Motor6D joins two BaseParts
(Part0 and Part1)
together in an animatable way. The Transform
property determines the offset between these parts. This can be set manually
using RunService.PreSimulation or through an Animator.
Models whose parts are joined by Motor6D are usually referred to as
rigs, typically for Humanoids. Motor6D remains
appropriate for non-avatar mechanical rigs (doors, turrets, vehicles) where
physical simulation is not needed.
Transitioning to AnimationConstraint for Avatar rigs
As of the
Avatar Joint Upgrade,
R15 player characters spawn with
AnimationConstraints instead of Motor6Ds when
AvatarJointUpgrade is enabled (the
default for new experiences). Code that assumes character joints are Motor6Ds
— such as character:FindFirstChildOfClass("Motor6D") or
joint:IsA("Motor6D") — will not find joints on upgraded characters. Use
AnimationConstraint for new avatar rig code. See the migration notes
on the AnimationConstraint page.
Properties 3
ChildName
: stringReadOnlyNotReplicatedNotScriptableRead-only name of the joint's child part, mirroring theNameofPart1.A read-only string that reflects the
Nameof the part assigned toPart1(the joint's child). The value is derived fromPart1, so writing to it has no effect. WhenPart1is not set, this property is an empty string.The animation system uses this name to match the joint against the corresponding pose channel in an animation, so a rig's part names must line up with the names authored in its animations.
ParentName
: stringReadOnlyNotReplicatedNotScriptableRead-only name of the joint's parent part, mirroring theNameofPart0.A read-only string that reflects the
Nameof the part assigned toPart0(the joint's parent). The value is derived fromPart0, so writing to it has no effect. WhenPart0is not set, this property is an empty string.The animation system uses this name to match the joint against the corresponding pose channel in an animation, so a rig's part names must line up with the names authored in its animations.
Transform
: CFrameHiddenNotReplicatedDescribes the current animation offset of theMotor6Djoint.The internal
CFramethat is manipulated when aMotor6Dis being animated. It is recommended to use this property for custom animations rather thanJointInstance.C0andJointInstance.C1.Timing
Motor6Dtransforms are not applied immediately, unlike updatingC0andC1, but rather as a batch in a parallel job afterRunService.PreSimulation, immediately before physics steps. The deferred batch update is much more efficient than many immediate updates.If the
Motor6Dis part of an animated model with anAnimator, thenMotor6D.Transformwill usually be overwritten every frame by theAnimatorafterRunService.PreAnimationand beforeRunService.PreSimulation.
Motor6D also has every member of Motor. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.