Yuari
Documentation

typeof

Type name for any value. VM userdata report as "Vector3", "Vector2", "CFrame", "Color3", "RBXScriptConnection" or "Drawing"; everything else uses standard Luau type names.

Syntax

typeof(value: any) -> string

Parameters

ParameterTypeDescription
valueanyThe value to apply.

Returns

TypeDescription
stringString

Description

typeof is part of the Core functions library. Core globals are installed in every executor thread and drive output, scheduling and identity.

The operation is performed immediately using the arguments supplied at the call site.

Example

print(typeof(Vector3.new(1, 2, 3)))
print(typeof(Drawing.new("Square")))

Notes

  • Core globals are available in every script.