Learn
Engine Class
WireframeHandleAdornment

Summary
Methods
AddLine(from: Vector3,to: Vector3):()
AddLines(points: {any}):()
AddPath(points: {any},loop: boolean):()
AddText(point: Vector3,text: string,size: number):()
Clear():()
Inherited Members
Code Samples
Basic Path Wireframe
local wireframe = script.Parent
-- Declare four points in a square arrangement
local pathArray = {
Vector3.new(-10, 10, 0),
Vector3.new(10, 10, 0),
Vector3.new(10, -10, 0),
Vector3.new(-10, -10, 0)
}
-- Apply path to adornment and close it (connect starting and ending points)
wireframe:AddPath(pathArray, true)
Multicolor Wireframe
local wireframe = script.Parent
wireframe.Color3 = Color3.fromRGB(255, 0, 0) -- Sets next line to red
wireframe:AddLine(Vector3.new(-10, 0, 0), Vector3.new(10, 0, 0))
wireframe.Color3 = Color3.fromRGB(0, 255, 0) -- Sets next line to green
wireframe:AddLine(Vector3.new(0, -10, 0), Vector3.new(0, 10, 0))
wireframe.Color3 = Color3.fromRGB(0, 0, 255) -- Sets next line to blue
wireframe:AddLine(Vector3.new(0, 0, -10), Vector3.new(0, 0, 10))

API Reference
Properties
Scale
Read Parallel
Capabilities: Basic, UI
WireframeHandleAdornment.Scale:Vector3

Thickness
Read Parallel
Capabilities: Basic, UI
WireframeHandleAdornment.Thickness:number

Methods
AddLine
Capabilities: Basic, UI
WireframeHandleAdornment:AddLine(
from:Vector3, to:Vector3
):()
Parameters
from:Vector3
Returns
()
Code Samples
Multicolor Wireframe
local wireframe = script.Parent
wireframe.Color3 = Color3.fromRGB(255, 0, 0) -- Sets next line to red
wireframe:AddLine(Vector3.new(-10, 0, 0), Vector3.new(10, 0, 0))
wireframe.Color3 = Color3.fromRGB(0, 255, 0) -- Sets next line to green
wireframe:AddLine(Vector3.new(0, -10, 0), Vector3.new(0, 10, 0))
wireframe.Color3 = Color3.fromRGB(0, 0, 255) -- Sets next line to blue
wireframe:AddLine(Vector3.new(0, 0, -10), Vector3.new(0, 0, 10))

AddLines
Capabilities: Basic, UI
WireframeHandleAdornment:AddLines(points:{any}):()
Parameters
points:{any}
Returns
()
Code Samples
Wireframe Lines From Array
local wireframe = script.Parent
local linesArray = {
Vector3.new(-10, 0, 0), -- Starting point of first line
Vector3.new(10, 0, 0), -- Ending point of first line
Vector3.new(0, -10, 0), -- Starting point of second line
Vector3.new(0, 10, 0), -- Ending point of second line
Vector3.new(0, 0, -10), -- Starting point of third line
Vector3.new(0, 0, 10) -- Ending point of third line
}
-- Apply path to adornment
wireframe:AddLines(linesArray)

AddPath
Capabilities: Basic, UI
WireframeHandleAdornment:AddPath(
points:{any}, loop:boolean
):()
Parameters
points:{any}
loop:boolean
Returns
()
Code Samples
Basic Path Wireframe
local wireframe = script.Parent
-- Declare four points in a square arrangement
local pathArray = {
Vector3.new(-10, 10, 0),
Vector3.new(10, 10, 0),
Vector3.new(10, -10, 0),
Vector3.new(-10, -10, 0)
}
-- Apply path to adornment and close it (connect starting and ending points)
wireframe:AddPath(pathArray, true)

AddText
Capabilities: Basic, UI
WireframeHandleAdornment:AddText(
point:Vector3, text:string, size:number
):()
Parameters
point:Vector3
text:string
size:number
Default Value: 12
Returns
()

Clear
Capabilities: Basic, UI
WireframeHandleAdornment:Clear():()
Returns
()

©2026 Roblox Corporation. Roblox, the Roblox logo and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.