GetConstraints||doc136424

September 20, 2022

Format

BasePart:GetConstraints(constraintType)

Describe

Get all constraints related to the part. You can get only specific constraint types, and get all types by default.

parameter

Variable name Type Describe
constraintType ConstraintType Specify the constraint type, which defaults to nil, and get all types of constraints

Return value

Type Describe
table<BaseConstraint> Constraint list