syn. create_secure_function Synchronous
syn.protect_guisyn.run_secure_functionsyn.secrunsyn.unprotect_gui
Provide a compatibility placeholder for scripts expecting this name. The name exists for compatibility, but it does not wrap, protect, or return a supplied callback. Code requiring that behavior must not rely on this placeholder.
Luau
syn.create_secure_function(...ignored: any) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
...ignored | any | All supplied arguments are ignored. |
Returns
()No values. This implementation is a no-op.
Availability
This function requires the Synapse environment setting, which is off by default.
Example
Luau
-- Enable the Synapse environment setting first.
local result = syn.create_secure_function(function() return 42 end)
print(result == nil) -- true; no wrapper was returned