HingeConstraint

Roblox's HingeConstraint: in Play its two Attachments stay together and their parts turn only about Attachment0's X (Roblox's Axis), like a door or a lid; LimitsEnabled keeps the turn between LowerAngle and UpperAngle degrees.

An anchored part (or none) holds its end where it is. ActuatorType Servo turns it toward TargetAngle at AngularSpeed (rad/s) with up to ServoMaxTorque; Motor spins it at AngularVelocity (rad/s) with up to MotorMaxTorque (0 turns nothing), reaching that speed at MotorMaxAcceleration (rad/s squared). Visible shows a mark along the axis.

Properties

Hinge

NameTypeDefault
ActuatorType("None" | "Motor" | "Servo" | Enum.ActuatorType)None
None, Motor, Servo
Attachment0Attachment?
Attachment1Attachment?
Enabledbooleantrue

Servo

AngularSpeednumber0
0 to 1e+06
ServoMaxTorquenumber0
0 to 1e+30
TargetAnglenumber0
-180 to 180

Motor

AngularVelocitynumber0
MotorMaxAccelerationnumberinf
0 to 1e+30
MotorMaxTorquenumber0
0 to 1e+30

Limits

LimitsEnabledbooleanfalse
LowerAnglenumber-45
-180 to 180
UpperAnglenumber45
-180 to 180

Appearance

Visiblebooleanfalse
From Instance 22