Class
Constraint
NotCreatable
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#
Activeboolean | Indicates if the constraint is currently active in the world.ReadSafeReadOnlyNotReplicated |
Attachment0Attachment | The Attachment that is connected to
Constraint.Attachment1.ReadSafe |
Attachment1Attachment | The Attachment that is connected to
Constraint.Attachment0.ReadSafe |
ColorBrickColor | The color of the constraint.ReadSafe |
Enabledboolean | Toggles whether or not the constraint is enabled.ReadSafe |
Visibleboolean | Toggles 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 | Deprecated |
| GetDebugAppliedTorque | Deprecated |
GetDebugAppliedForce(bodyId: int): Vector3#
DeprecatedDeprecated
Deprecated. This method should not be used in new work.
| Name | Type | Default | Description |
|---|---|---|---|
bodyId | int |
Returns
GetDebugAppliedTorque(bodyId: int): Vector3#
DeprecatedDeprecated
Deprecated. This method should not be used in new work.
| Name | Type | Default | Description |
|---|---|---|---|
bodyId | int |
Returns
Inherited members#
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild
Subclasses 18#
AnimationConstraint, AlignOrientation, AlignPosition, AngularVelocity, BallSocketConstraint, HingeConstraint, LineForce, LinearVelocity, PlaneConstraint, RigidConstraint, RodConstraint, RopeConstraint, SlidingBallConstraint, SpringConstraint, Torque, TorsionSpringConstraint, UniversalConstraint, VectorForce