13 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

CylindricalConstraint

Inherits from: SlidingBallConstraint → Constraint → Instance → Object

A CylindricalConstraint allows its attachments to slide along one axis and rotate about another axis. It can be thought of like a combination of a PrismaticConstraint and a HingeConstraint. The sliding axis is determined by the X axis of the constraint's Attachment0. The rotation axis is centered at the constraint's Attachment1 and is angled off of the sliding constraint by the constraint's InclinationAngle.

This constraint, along with a SpringConstraint, is ideal for building vehicle suspension.

Note that if this constraint attaches one part (A) to another part (B) that is anchored or connected to an anchored part (Z), part A will not be locally simulated when interacting with a player.

When configuring this constraint, it may be helpful to study Roblox Units to understand how Roblox units compare to metric units.

Angular Power

If a cylindrical's AngularActuatorType is set to Motor, it attempts to rotate the attachments with the goal of reaching its AngularVelocity. You can further control this rotation through both MotorMaxAngularAcceleration and MotorMaxTorque. If a cylindrical's AngularActuatorType is set to Servo, it attempts to rotate to an angle specified by TargetAngle. This rotation is controlled by AngularSpeed, AngularResponsiveness, and ServoMaxTorque.

Linear Power

If a cylindrical's ActuatorType is set to Motor, it attempts to translate the attachments with the goal of reaching Velocity. You can further control this translation through both MotorMaxAcceleration and MotorMaxForce. If a cylindrical's ActuatorType is set to Servo, it attempts to translate the attachments to a set separation specified by TargetPosition. This translation is controlled by Speed, LinearResponsiveness, and ServoMaxForce.

Limits

You can set limits to restrict both the sliding range and rotation of a cylindrical constraint. Enabling the LimitsEnabled property exposes the LowerLimit and UpperLimit values, as well as Restitution which defines the elasticity of the attachments when they reach either limit. Enabling the AngularLimitsEnabled property exposes the LowerAngle and UpperAngle limits, as well as AngularRestitution which defines the elasticity of the attachments when they reach either limit.

Inclination Angle

InclinationAngle defines the direction of the rotation axis as an angle from the X axis in the XY plane of Attachment0, from -180 to 180. This lets you tilt the rotating element without changing the sliding axis.

Inherits from: SlidingBallConstraint

Memory category: BaseParts

Properties

NameType / ReturnsDescription
CylindricalConstraint.AngularActuatorTypeActuatorTypeType of angular actuator.
CylindricalConstraint.AngularLimitsEnabledbooleanEnables the angular limits around the rotation axis.
CylindricalConstraint.AngularResponsivenessfloatSpecifies the sharpness of the angular servo motor in reaching the TargetAngle.
CylindricalConstraint.AngularRestitutionfloatRestitution of the two limits, or how elastic they are.
CylindricalConstraint.AngularSpeedfloatTarget angular speed. This value is unsigned as the servo will always move toward its target. In radians per second.
CylindricalConstraint.AngularVelocityfloatThe target angular velocity of the motor in radians per second around the rotation axis.
CylindricalConstraint.CurrentAnglefloatSigned angle (in degrees) between the reference axis and the secondary axis of Attachment1 around the rotation axis.
CylindricalConstraint.InclinationAnglefloatDirection of the rotation axis as an angle from the X axis in the XY plane of Attachment0.
CylindricalConstraint.LowerAnglefloatLower limit for the angle (in degrees) between the reference axis and the SecondaryAxis of Attachment1 around the rotation axis.
CylindricalConstraint.MotorMaxAngularAccelerationfloatThe maximum angular acceleration of the motor in radians per second squared.
CylindricalConstraint.MotorMaxTorquefloatThe maximum torque the motor can apply to achieve the target angular velocity.
CylindricalConstraint.RotationAxisVisiblebooleanEnable the visibility of the rotation axis.
CylindricalConstraint.ServoMaxTorquefloatMaximum torque the servo motor can apply.
CylindricalConstraint.SoftlockAngularServoUponReachingTargetboolean
CylindricalConstraint.TargetAnglefloatTarget angle (in degrees) between the reference axis and the secondary axis of Attachment1 around the rotation axis.
CylindricalConstraint.UpperAnglefloatUpper limit for the angle (in degrees) between the reference axis and the secondary axis of Attachment1 around the rotation axis.
CylindricalConstraint.WorldRotationAxisVector3The unit vector direction of the rotation axis in world coordinates.

Inherited from SlidingBallConstraint

NameType / ReturnsDescription
SlidingBallConstraint.ActuatorTypeActuatorTypeSets whether the translation of the SlidingBallConstraint is actuated and, if so, what kind of actuation.
SlidingBallConstraint.CurrentPositionfloatThe current offset between the constraint's Attachments.
SlidingBallConstraint.LimitsEnabledbooleanSets whether the SlidingBallConstraint will limit the range of translation.
SlidingBallConstraint.LinearResponsivenessfloatSpecifies the "sharpness" of the linear servo motor in reaching the TargetPosition.
SlidingBallConstraint.LowerLimitfloatThe lower positional limit along the X axis of Attachment0 if LimitsEnabled is true.
SlidingBallConstraint.MotorMaxAccelerationfloatThe constraint's maximum acceleration when ActuatorType is set to Motor as the constraint attempts to reach its desired Velocity.
SlidingBallConstraint.MotorMaxForcefloatThe constraint's maximum force when ActuatorType is set to Motor, as the constraint attempts to reach its desired Velocity.
SlidingBallConstraint.RestitutionfloatThe elasticity of the constraint's Attachments when they reach the end of the range specified by UpperLimit and LowerLimit, assuming LimitsEnabled is set to true.
SlidingBallConstraint.ServoMaxForcefloatThe constraint's maximum force when ActuatorType is set to Servo, as the constraint attempts to reach its desired Speed.
SlidingBallConstraint.SizefloatThe constraint's visualized size.
SlidingBallConstraint.SoftlockServoUponReachingTargetboolean
SlidingBallConstraint.SpeedfloatThe constraint's desired speed when ActuatorType is set to Servo, as the constraint translates towards its TargetPosition. Measured in studs per second.
SlidingBallConstraint.TargetPositionfloatThe constraint's attempted target position when ActuatorType is set to Servo. Measured in studs.
SlidingBallConstraint.UpperLimitfloatThe upper positional limit along the X axis of Attachment0 if LimitsEnabled is true.
SlidingBallConstraint.VelocityfloatThe constraint's attempted velocity when ActuatorType is set to Motor. Measured in studs per second.

Inherited from Constraint

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

Inherited from Instance

NameType / ReturnsDescription
Instance.ArchivablebooleanDetermines if an Instance and its descendants can be cloned using Instance:Clone(), and can be saved/published.
Instance.archivableboolean
Instance.CapabilitiesSecurityCapabilitiesThe set of capabilities allowed to be used for scripts inside this container.
Instance.IsInSandboxbooleanIndicates whether the instance is inside a sandboxed container.
Instance.NamestringA non-unique identifier of the Instance.
Instance.ParentInstanceDetermines the hierarchical parent of the Instance.
Instance.PredictionModePredictionModeReflects the client-side prediction mode applied to the instance under server-authoritative physics.
Instance.RobloxLockedbooleanA deprecated property that used to protect CoreGui objects.
Instance.SandboxedbooleanWhen enabled, the instance can only access abilities in its Capabilities list.
Instance.UniqueIdUniqueIdA unique identifier for the instance.

Inherited from Object

NameType / ReturnsDescription
Object.ClassNamestringA read-only string representing the class this Object belongs to.
Object.classNamestring

CylindricalConstraint.AngularActuatorType

If a cylindrical's AngularActuatorType is set to Motor, it attempts to rotate the attachments with the goal of reaching its AngularVelocity. You can further control this rotation through both MotorMaxAngularAcceleration and MotorMaxTorque.

If a cylindrical's AngularActuatorType is set to Servo, it attempts to rotate to an angle specified by TargetAngle. This rotation is controlled by AngularSpeed, AngularResponsiveness, and ServoMaxTorque.

FieldValue
typeActuatorType
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryCylinder
serialization{"can_load":true,"can_save":true}
capabilities["Physics"]
simulationAccesstrue

CylindricalConstraint.AngularLimitsEnabled

Enables the angular limits around the rotation axis.

FieldValue
typeboolean
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryCylinder
serialization{"can_load":true,"can_save":true}
capabilities["Physics"]
simulationAccesstrue

CylindricalConstraint.AngularResponsiveness

This property specifies the sharpness of the angular servo motor in reaching the TargetAngle, when AngularActuatorType is set to Servo. Larger values correspond to a faster response and smaller values results in more damping and a slower response.

FieldValue
typefloat
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAngularServo
serialization{"can_load":true,"can_save":true}
capabilities["Physics"]
simulationAccesstrue

CylindricalConstraint.AngularRestitution

Restitution of the two limits, or how elastic they are. Constrained between 0 and 1.

FieldValue
typefloat
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAngularLimits
serialization{"can_load":true,"can_save":true}
capabilities["Physics"]
simulationAccesstrue

CylindricalConstraint.AngularSpeed

Target angular speed. This value is unsigned as the servo will always move toward its target. In radians per second.

FieldValue
typefloat
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAngularServo
serialization{"can_load":true,"can_save":true}
capabilities["Physics"]
simulationAccesstrue

CylindricalConstraint.AngularVelocity

The target angular velocity of the motor in radians per second around the rotation axis.

FieldValue
typefloat
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAngularMotor
serialization{"can_load":true,"can_save":true}
capabilities["Physics"]
simulationAccesstrue

CylindricalConstraint.CurrentAngle

Signed angle (in degrees) between the reference axis and the secondary axis of Attachment1 around the rotation axis. Valid range between -180 and 180.

FieldValue
typefloat
tags["ReadOnly","NotReplicated"]
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryDerived
serialization{"can_load":false,"can_save":true}
capabilities["Physics"]
simulationAccesstrue

CylindricalConstraint.InclinationAngle

Direction of the rotation axis as an angle from the X axis in the XY plane of Attachment0. Valid range between -180 and 180.

FieldValue
typefloat
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryCylinder
serialization{"can_load":true,"can_save":true}
capabilities["Physics"]
simulationAccesstrue

CylindricalConstraint.LowerAngle

Lower limit for the angle (in degrees) between the reference axis and the SecondaryAxis of Attachment1 around the rotation axis. Valid range between -180 and 180.

FieldValue
typefloat
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAngularLimits
serialization{"can_load":true,"can_save":true}
capabilities["Physics"]
simulationAccesstrue

CylindricalConstraint.MotorMaxAngularAcceleration

The maximum angular acceleration of the motor in radians per second squared.

FieldValue
typefloat
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAngularMotor
serialization{"can_load":true,"can_save":true}
capabilities["Physics"]
simulationAccesstrue

CylindricalConstraint.MotorMaxTorque

The maximum torque the motor can apply to achieve the target angular velocity. Units are mass × studs²/second².

FieldValue
typefloat
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAngularMotor
serialization{"can_load":true,"can_save":true}
capabilities["Physics"]
simulationAccesstrue

CylindricalConstraint.RotationAxisVisible

Enable the visibility of the rotation axis.

FieldValue
typeboolean
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAppearance
serialization{"can_load":true,"can_save":true}
capabilities["Physics"]

CylindricalConstraint.ServoMaxTorque

Maximum torque the servo motor can apply. Units are mass × studs²/second².

FieldValue
typefloat
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAngularServo
serialization{"can_load":true,"can_save":true}
capabilities["Physics"]
simulationAccesstrue

CylindricalConstraint.SoftlockAngularServoUponReachingTarget

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

FieldValue
typeboolean
tags["Deprecated"]
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAngularServo
serialization{"can_load":true,"can_save":true}
capabilities["Physics"]
simulationAccesstrue

CylindricalConstraint.TargetAngle

Target angle (in degrees) between the reference axis and the secondary axis of Attachment1 around the rotation axis. Valid range between -180 and 180.

FieldValue
typefloat
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAngularServo
serialization{"can_load":true,"can_save":true}
capabilities["Physics"]
simulationAccesstrue

CylindricalConstraint.UpperAngle

Upper limit for the angle (in degrees) between the reference axis and the secondary axis of Attachment1 around the rotation axis. Valid range between -180 and 180.

FieldValue
typefloat
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAngularLimits
serialization{"can_load":true,"can_save":true}
capabilities["Physics"]
simulationAccesstrue

CylindricalConstraint.WorldRotationAxis

The unit vector direction of the rotation axis in world coordinates.

FieldValue
typeVector3
tags["ReadOnly","NotReplicated"]
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryDerived
serialization{"can_load":false,"can_save":true}
capabilities["Physics"]
simulationAccesstrue

Methods

Inherited from Constraint

NameType / ReturnsDescription
Constraint:GetDebugAppliedForceVector3
Constraint:GetDebugAppliedTorqueVector3

Inherited from Instance

NameType / ReturnsDescription
Instance:AddTag()Applies a tag to the instance.
Instance:childrenInstancesReturns an array of the object's children.
Instance:ClearAllChildren()This method destroys all of an instance's children.
Instance:CloneInstanceCreate a copy of an instance and all its descendants, ignoring instances that are not Archivable.
Instance:cloneInstance
Instance:Destroy()Sets the Instance.Parent property to nil, locks the Instance.Parent property, disconnects all connections, and calls Destroy() on all children.
Instance:destroy()
Instance:FindFirstAncestorInstance?Returns the first ancestor of the Instance whose Instance.Name is equal to the given name.
Instance:FindFirstAncestorOfClassInstance?Returns the first ancestor of the Instance whose Object.ClassName is equal to the given className.
Instance:FindFirstAncestorWhichIsAInstance?Returns the first ancestor of the Instance for whom Object:IsA() returns true for the given className.
Instance:FindFirstChildInstance?Returns the first child of the Instance found with the given name.
Instance:findFirstChildInstance
Instance:FindFirstChildOfClassInstance?Returns the first child of the Instance whose ClassName is equal to the given class name.
Instance:FindFirstChildWhichIsAInstance?Returns the first child of the Instance for whom Object:IsA() returns true for the given className.
Instance:FindFirstDescendantInstance?Returns the first descendant found with the given Instance.Name.
Instance:GetActorActor?Returns the Actor associated with the Instance, if any.
Instance:GetAttributeVariantReturns the value which has been assigned to the given attribute name.
Instance:GetAttributeChangedSignalRBXScriptSignalReturns an event that fires when the given attribute changes.
Instance:GetAttributesDictionaryReturns a dictionary of the instance's attributes.
Instance:GetChildrenInstancesReturns an array containing all of the instance's children.
Instance:getChildrenInstances
Instance:GetDebugIdstringReturns a coded string of the debug ID used internally by Roblox.
Instance:GetDescendantsInstancesReturns an array containing all of the descendants of the instance.
Instance:GetFullNamestringReturns a string describing the instance's ancestry.
Instance:GetStyledVariantReturns the styled or explicitly modified value of the specified property, or else the default property value if it hasn't been styled/modified.
Instance:GetStyledPropertyChangedSignalRBXScriptSignalReturns an event that fires when the given style property changes on the instance.
Instance:GetTagsArrayGets an array of all tags applied to the instance.
Instance:HasTagbooleanCheck whether the instance has a given tag.
Instance:IsAncestorOfbooleanReturns true if an Instance is an ancestor of the given descendant.
Instance:IsDescendantOfbooleanReturns true if an Instance is a descendant of the given ancestor.
Instance:isDescendantOfboolean
Instance:IsPropertyModifiedbooleanReturns true if the value stored in the specified property is not equal to the code-instantiated default.
Instance:QueryDescendantsInstancesReturns an array containing all descendants of the instance that match the selector string.
Instance:Remove()Sets the object's Parent to nil, and does the same for all its descendants.
Instance:remove()
Instance:RemoveTag()Removes a tag from the instance.
Instance:ResetPropertyToDefault()Resets a property to its default value.
Instance:SetAttribute()Sets the attribute with the given name to the given value.
Instance:WaitForChildInstanceReturns the child of the Instance with the given name. If the child does not exist, it will yield the current thread until it does.

Inherited from Object

NameType / ReturnsDescription
Object:GetPropertyChangedSignalRBXScriptSignalGet an event that fires when a given property of the object changes.
Object:IsAbooleanReturns true if an object's class matches or inherits from a given class.
Object:isAboolean

Events

Inherited from Instance

NameType / ReturnsDescription
Instance.AncestryChangedFires when the Instance.Parent property of this object or one of its ancestors is changed.
Instance.AttributeChangedFires whenever an attribute is changed on the Instance.
Instance.ChildAddedFires after an object is parented to this Instance.
Instance.childAdded
Instance.ChildRemovedFires after a child is removed from this Instance.
Instance.DescendantAddedFires after a descendant is added to the Instance.
Instance.DescendantRemovingFires immediately before a descendant of the Instance is removed.
Instance.DestroyingFires immediately before (or is deferred until after) the instance is destroyed via Instance:Destroy().
Instance.StyledPropertiesChangedFires whenever any style property is changed on the instance, including when a property is set to nil.

Inherited from Object

NameType / ReturnsDescription
Object.ChangedFires immediately after a property of the object changes, with some limitations.