Drawing The Drawing library creates persistent visual overlays rendered above the game viewport.
Drawing . new ( type : "Line" | "Circle" | "Square" | "Triangle" | "Text" | "Image" | "Quad" ) -> DrawingObject
local line = Drawing . new ( "Line" )
line . From = Vector2 . new ( 0 , 0 )
line . To = Vector2 . new ( 100 , 100 )
line . Color = Color3 . fromRGB ( 255 , 0 , 0 )
line . Thickness = 2
line . Visible = true
Every drawing object exposes Remove() and Destroy(). Both stop the object from rendering. The read-only __OBJECT_EXISTS property reports whether it still exists.
Property Type VisiblebooleanZIndexnumberTransparencynumberColorColor3__OBJECT_EXISTSboolean (read-only)
Property Type FromVector2ToVector2Thicknessnumber
Property Type PositionVector2RadiusnumberNumSidesnumberThicknessnumberFilledboolean
Property Type PositionVector2SizeVector2ThicknessnumberFilledboolean
Property Type PointAVector2PointBVector2PointCVector2ThicknessnumberFilledboolean
Property Type PointAVector2PointBVector2PointCVector2PointDVector2ThicknessnumberFilledboolean
Property Type Notes TextstringDisplayed text TextBoundsVector2Read-only calculated bounds FontDrawing.Fonts | DrawFontLegacy font ID or registered font SizenumberFont size PositionVector2Draw position Center, CenteredbooleanEquivalent names Outline, OutlinedbooleanEquivalent names OutlineColorColor3Outline color OutlineOpacitynumberOutline opacity
Property Type Notes DatastringEncoded image data SizeVector2Draw size PositionVector2Draw position RoundingnumberCorner rounding LoadedbooleanRead-only load state
Drawing . Fonts . UI -- 0
Drawing . Fonts . System -- 1
Drawing . Fonts . Plex -- 2
Drawing . Fonts . Monospace -- 3
local circle = Drawing . new ( "Circle" )
circle . Visible = true
-- Later
circle : Remove ()
print ( circle . __OBJECT_EXISTS ) -- false