backupRoswaal has moved to roswaal.app. These pages are a backup copy.Go to roswaal.app

Type OfLuau✎

Roblox's typeof, which knows its own datatypes -- a Vector3 answers "Vector3" where Lua's type only says "userdata". This is the runtime one; for typeof(x) inside a type, write it in a Declare Type node's definition.

Pending review

typeof
  • the language itself, so it works in Roblox and in Lune
  • pure — no execution pins, wire it anywhere
  • names its result — Result name in the Inspector is the local it binds, and a Declare Local reading that result makes a second one: see Variables and locals

Inputs

  • value:anymust be wired

Outputs

  • result:string

What it compiles to

luau
print(typeof(value))

Not reviewed yet