isrenderobj Synchronous

Check whether a value is a live drawing object. Use it before accepting an object in code that works with drawings. A removed drawing returns false, even if your script still holds its old handle. This makes it useful for checking object lifetime before an update.

Syntax
Luau
isrenderobj(value: any) -> boolean

Parameters

Function parameters
ParameterTypeDescription
valueanyValue to inspect.

Returns

boolean

true for an existing DrawingObject; false for other values and for a drawing that has been removed.

Example

Example
Luau
local square = Drawing.new("Square")
print(isrenderobj(square)) -- true
square:Remove()
print(isrenderobj(square)) -- false
Kawaii documentation