Roblox UtilitiesDevlHub Roblox Documentation

Class

Constraint

NotCreatable
Inherits
Instance › Object
Memory category
BaseParts
Subclasses
18

The base class for constraint-based objects.

The base class for constraint-based objects. See mover constraints and mechanical constraints for more details.

Properties 6#

ActivebooleanIndicates if the constraint is currently active in the world.ReadSafeReadOnlyNotReplicated
Attachment0AttachmentThe Attachment that is connected to Constraint.Attachment1.ReadSafe
Attachment1AttachmentThe Attachment that is connected to Constraint.Attachment0.ReadSafe
ColorBrickColorThe color of the constraint.ReadSafe
EnabledbooleanToggles whether or not the constraint is enabled.ReadSafe
VisiblebooleanToggles the constraint's visibility.ReadSafe

Active: boolean#

ReadOnlyNotReplicatedReadSafe

This property is true if the constraint and both of its parts are in the Workspace and the constraint's Constraint.Enabled property is true.

Attachment0: Attachment#

ReadSafe

The Attachment that is connected to Constraint.Attachment1

Attachment1: Attachment#

ReadSafe

The Attachment that is connected to Constraint.Attachment0

Color: BrickColor#

ReadSafe

The color of the constraint.

Enabled: boolean#

ReadSafe

Toggles whether or not the constraint is enabled.

Visible: boolean#

ReadSafe

Toggles the constraint's visibility.

Methods 2#

GetDebugAppliedForce(bodyId: int): Vector3#

DeprecatedDeprecated

Deprecated. This method should not be used in new work.

NameTypeDefaultDescription
bodyIdint
Returns

GetDebugAppliedTorque(bodyId: int): Vector3#

DeprecatedDeprecated

Deprecated. This method should not be used in new work.

NameTypeDefaultDescription
bodyIdint
Returns

Inherited members#

Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed

Subclasses 18#