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
| Name | Type / Returns | Description |
|---|---|---|
| Path2DControlPoint.new | Returns an empty Path2DControlPoint. | |
| Path2DControlPoint.new | Returns a Path2DControlPoint with only the position set. | |
| Path2DControlPoint.new | Returns 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
| Name | Type | Default | Description |
|---|---|---|---|
| Position | UDim2 | The UDim2 position of the control point. |
Path2DControlPoint.new
Returns a Path2DControlPoint with the position, left tangent, and right tangent set.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| Position | UDim2 | The UDim2 position of the control point. | |
| Left Tangent | UDim2 | The UDim2 left tangent of the control point. | |
| Right Tangent | UDim2 | The UDim2 right tangent of the control point. |
Properties
| Name | Type / Returns | Description |
|---|---|---|
| Path2DControlPoint.Position | UDim2 | The position of the Path2DControlPoint. |
| Path2DControlPoint.LeftTangent | UDim2 | The left tangent of the Path2DControlPoint. |
| Path2DControlPoint.RightTangent | UDim2 | The right tangent of the Path2DControlPoint. |
Path2DControlPoint.Position
The position of the Path2DControlPoint relative to the path's container.
| Field | Value |
|---|---|
| type | UDim2 |
Path2DControlPoint.LeftTangent
The left tangent of the Path2DControlPoint.
| Field | Value |
|---|---|
| type | UDim2 |
Path2DControlPoint.RightTangent
The right tangent of the Path2DControlPoint.
| Field | Value |
|---|---|
| type | UDim2 |