Skip to Content
Kinemium

LineHandleAdornment

Draw a straight line from a part.

LineHandleAdornment draws a line starting at its target part, using Length, Thickness, and CFrame to control the segment.

Getting started

local line = Instance.new("LineHandleAdornment")
line.Adornee = targetPart
line.Length = 12
line.Thickness = 0.1
line.CFrame = CFrame.new(0, 2, 0)
line.Color3 = Color3.fromRGB(255, 90, 90)
line.Parent = targetPart

Properties

PropertyTypeAccessDefaultDescription
AdorneeInstance?Read/writenilPart that provides the reference transform.
Color3Color3Read/writeGreenLine color.
LengthnumberRead/write1Line length in studs.
ThicknessnumberRead/write0.05Line thickness in studs.
CFrameCFrameRead/writeIdentityPlacement and direction relative to the target part.

Notes

  • Inherits from ValueBase, which adds no members.
  • If Adornee is nil, the parent is used, and the parent must be a Part.
  • The line starts at the transformed origin and extends along the transform's look direction.
  • Cloning copies the target, color, length, thickness, and transform.

See also

  • CylinderHandleAdornment for a thicker volume.
  • Attachment for a visible axis marker.

On this page