Tells you whether a function was written in Luau.
Most commonly used to find user-script functions and look inside them.
For example, getconstants only works on Luau closures:
Parameters
Returns
true if func is a Luau closure, false if it’s a C closure.
Example
Lua closures are user-defined or script-defined Luau functions.