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
| Parameter | Type | Description |
|---|---|---|
value | any | The value to apply. |
Returns
| Type | Description |
|---|---|
string | String |
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.