ReferenceDrawing

isrenderobj

Tests whether a value is a live Drawing object.

Syntax

isrenderobj(value: any) -> boolean

Also available as

isrenderobjectis_render_obj

Parameters

ParameterTypeDescription
valueanyValue to test.

Returns

TypeDescription
booleanWhether the value refers to a live drawing.

Description

Roblox GUI Instances and plain tables are not Drawing objects. A removed handle is no longer a live render object. Use this check when cleanup code may receive mixed object types.

Example

local line = Drawing.new("Line")
print(isrenderobj(line))
line:Remove()
print(isrenderobj(line))

These are Game executor contracts. Check build requirements and session lifetimes before using them.