syn.create_secure_function Synchronous

  • syn.protect_gui
  • syn.run_secure_function
  • syn.secrun
  • syn.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.

Syntax
Luau
syn.create_secure_function(...ignored: any) -> ()

Parameters

Function parameters
ParameterTypeDescription
...ignoredanyAll 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

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
Kawaii documentation