Skip to content

Note

Studio's property groups and the scripting component API are different. A label shown in the Properties panel is not automatically a component name or a Luau field.

SwingTwistJoint

SwingTwistJoint is a (case-sensitive) built-in component name that stores swing-twist joint settings. You can use it with game.World.Query, Query:With, Query:Without, game.World.Each, and the Instance component methods.

Script access

While this component can be used as a filter in Queries, it currently does not expose any of its fields to Queries. However, it can be accessed via Instance:GetSwingTwistJoint() and SetSwingTwistJoint(...).

Inspector fields are serialization/editor metadata and are not automatically available as Luau fields. See Components for that distinction and Instances for fixed property types and write scope.

Stored fields

Note

Currently, these fields are not directly available as editable Luau. As such, they are reported as the types they are stored as in the engine itself instead of Luau types.

Field Stored type Notes
anchor.x f32
anchor.y f32
anchor.z f32
twistAxis.x f32
twistAxis.y f32
twistAxis.z f32
planeAxis.x f32
planeAxis.y f32
planeAxis.z f32
restAxis.x f32
restAxis.y f32
restAxis.z f32
planeConeDeg f32
normalConeDeg f32
twistMinDeg f32
twistMaxDeg f32
frictionTorque f32