2 min read

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

Path2DControlPoint

The Path2DControlPoint data type represents a single control point used with the Path2D instance.

Constructors

NameType / ReturnsDescription
Path2DControlPoint.newReturns an empty Path2DControlPoint.
Path2DControlPoint.newReturns a Path2DControlPoint with only the position set.
Path2DControlPoint.newReturns a Path2DControlPoint with the position, left tangent, and right tangent set.

Path2DControlPoint.new

Returns an empty Path2DControlPoint.

Path2DControlPoint.new

Returns a Path2DControlPoint with the position set. This constructor will set the tangents to default UDim2 values.

Parameters

NameTypeDefaultDescription
PositionUDim2The UDim2 position of the control point.

Path2DControlPoint.new

Returns a Path2DControlPoint with the position, left tangent, and right tangent set.

Parameters

NameTypeDefaultDescription
PositionUDim2The UDim2 position of the control point.
Left TangentUDim2The UDim2 left tangent of the control point.
Right TangentUDim2The UDim2 right tangent of the control point.

Properties

NameType / ReturnsDescription
Path2DControlPoint.PositionUDim2The position of the Path2DControlPoint.
Path2DControlPoint.LeftTangentUDim2The left tangent of the Path2DControlPoint.
Path2DControlPoint.RightTangentUDim2The right tangent of the Path2DControlPoint.

Path2DControlPoint.Position

The position of the Path2DControlPoint relative to the path's container.

FieldValue
typeUDim2

Path2DControlPoint.LeftTangent

The left tangent of the Path2DControlPoint.

FieldValue
typeUDim2

Path2DControlPoint.RightTangent

The right tangent of the Path2DControlPoint.

FieldValue
typeUDim2