Skip to main content
Tells you whether a function was written in C or in Luau.
Most commonly used to tell a real Roblox Instance apart from a Luau table pretending to be one - real Instance methods like Destroy are always C closures, so a Luau result means the object is a fake.

Parameters

Returns

true if func is a C closure, false if it’s a Luau closure.

Example

C closures represent built-in engine functions or wrapped native code.