syn.create_secure_function Synchronous

  • syn.protect_gui
  • syn.run_secure_function
  • syn.secrun
  • syn.unprotect_gui

A compatibility placeholder for code that checks for a Synapse-style secure-function helper. Kawaii accepts the call but does not create or wrap a function.

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

Parameters

Function parameters
ParameterTypeDescription
...ignoredanyArguments are accepted and ignored.

Returns

()

No values. The call has no effect.

Usage notes

Do not treat the call as a security boundary or assume it changed the function you passed.

Availability

This function requires the Synapse environment setting, which is off by default.

Example

Example
Luau
local callback = function() print("still an ordinary callback") end
syn.create_secure_function(callback)
callback()
Kawaii documentation