Closureshookmetamethod
Closures

hookmetamethod

Hooks a named metamethod on a metatable-capable object.

Related to sUNC documentation

This page follows the official sUNC reference.

Signature

Luau
function hookmetamethod(object: { [any]: any } | Instance | userdata, metamethodName: string, hook: (...any) -> (...any)): (...any) -> (...any)