evasivedocs
Roblox scriptingLuau 0.748 · 24 guides · 385 API entries
API reference

Drawing

2D drawings over the Roblox window, and every drawing kind.

Drawing

2D drawings over the Roblox window. They sit above evasive's ESP and below its menu, and use Roblox client pixels like WorldToScreen. A script with drawings keeps running until you stop it or it removes the last one. Stopping it removes them. At most 10000 drawings per script.

13 entries

Drawing.new

function
Drawing.new(type) -> Drawing

A new drawing of type "Square", "Line", "Circle", "Text", "Triangle", "Quad" or "Image". It starts hidden: set Visible = true.

Arguments
NameTypeDescription
typestring
Returns
  • Drawing
Example
Luau
local box = Drawing.new("Square")
box.Size = Vector2.new(100, 50)
box.Position = Vector2.new(20, 20)
box.Color = Color3.fromRGB(255, 0, 0)
box.Visible = true

Drawing.Fonts

constant

Font ids for Text.Font: UI 0, System 1, SystemBold 2, Blocky 3, Monospace 4, Pixel 5, Heavy 6, Rounded 7. Blocky is a pixel face built into evasive, Heavy is Impact and Rounded is Arial Rounded Bold. A face that is not installed is replaced by a close Windows font.

Returns
  • table
Example
Luau
text.Font = Drawing.Fonts.Monospace

Drawing.Visible

field

Shown or not (false at first).

Returns
  • boolean

Drawing.ZIndex

field

Higher draws on top (0 at first).

Returns
  • number

Drawing.Transparency

field

Opacity: 1 is opaque, 0 invisible.

Returns
  • number

Drawing.Color

field

The colour (white at first).

Returns
  • Color3

Drawing.Position

field

Top-left corner, in client pixels.

Returns
  • Vector2

Drawing:Remove

method
Drawing:Remove()

Removes the drawing. Later writes to it are ignored.

Example
Luau
box:Remove()

Drawing:Destroy

method
Drawing:Destroy()

The same as Remove.

cleardrawcache

function
cleardrawcache()

Removes every drawing of the calling script.

Example
Luau
cleardrawcache()

isrenderobj

function
isrenderobj(value) -> boolean

true for a Drawing.

Arguments
NameTypeDescription
valueany
Returns
  • boolean

getrenderproperty

function
getrenderproperty(drawing, name) -> any

The same as drawing[name].

Arguments
NameTypeDescription
drawingDrawing
namestring
Returns
  • any

setrenderproperty

function
setrenderproperty(drawing, name, value)

The same as drawing[name] = value.

Arguments
NameTypeDescription
drawingDrawing
namestring
valueany

Square (Drawing)

A rectangle.

4 entries

Square.Size

field

Width and height.

Returns
  • Vector2

Square.Filled

field

Filled or an outline.

Returns
  • boolean

Square.Thickness

field

The outline width (1 at first).

Returns
  • number

Square.Corner

field

Corner rounding in pixels. Rounding is the same property.

Returns
  • number

Line (Drawing)

A straight line.

3 entries

Line.From

field

One end.

Returns
  • Vector2

Line.To

field

The other end.

Returns
  • Vector2

Line.Thickness

field

Width in pixels.

Returns
  • number

Circle (Drawing)

A circle around Position.

4 entries

Circle.Radius

field

Radius in pixels.

Returns
  • number

Circle.NumSides

field

How many segments. 0 picks a number by size.

Returns
  • number

Circle.Thickness

field

The outline width.

Returns
  • number

Circle.Filled

field

Filled or an outline.

Returns
  • boolean

Text (Drawing)

Text at Position.

7 entries

Text.Text

field

The text (the first 4096 bytes are drawn).

Returns
  • string
Example
Luau
label.Text = "hello"

Text.FontSize

field

Size in pixels (16 at first). Size is the same property.

Returns
  • number

Text.Font

field

A Drawing.Fonts id, or its name.

Returns
  • number

Text.Center

field

Centre each line on Position.

Returns
  • boolean

Text.Outline

field

Draw an outline.

Returns
  • boolean

Text.OutlineColor

field

The outline's colour (black at first).

Returns
  • Color3

Text.TextBounds

field

The drawn size of the text. Read-only.

Returns
  • Vector2

Triangle (Drawing)

Three corners.

5 entries

Triangle.PointA

field

The first corner.

Returns
  • Vector2

Triangle.PointB

field

The second corner.

Returns
  • Vector2

Triangle.PointC

field

The third corner.

Returns
  • Vector2

Triangle.Filled

field

Filled or an outline.

Returns
  • boolean

Triangle.Thickness

field

The outline width.

Returns
  • number

Quad (Drawing)

Four corners.

5 entries

Quad.PointA

field

The first corner.

Returns
  • Vector2

Quad.PointB

field

The second corner.

Returns
  • Vector2

Quad.PointC

field

The third corner.

Returns
  • Vector2

Quad.PointD

field

The fourth corner.

Returns
  • Vector2

Quad.Filled

field

Filled or an outline.

Returns
  • boolean

Image (Drawing)

A picture.

3 entries

Image.Data

field

The image file's bytes, up to 32 MB, for example from game:HttpGet. PNG, JPEG, BMP and the other formats Windows can decode work. It is decoded in the background.

Returns
  • string
Example
Luau
img.Data = game:HttpGet("https://example.com/logo.png")

Image.Size

field

Width and height (50 by 50 at first).

Returns
  • Vector2

Image.Rounding

field

Corner rounding in pixels (0 at first).

Returns
  • number