Skip to content

add secure_call (syn.secure_call) #145

@Yv50

Description

@Yv50

https://synapsexdocs.github.io/libraries/syn/ ctrl F Secure Call

syn.secure_call( func, <script> script, <...> args)

Spoofs caller environment and context when calling func with script's environment. You can pass as many arguments args as is required. Secure_call returns whatever the called function returns.

Example

local KeyHandler = require(game:GetService("ReplicatedStorage").Assets.Modules.KeyHandler)
local PlayerName = game:GetService("Players").LocalPlayer.Name
local FakeEnv = game:GetService("Workspace").Live[PlayerName].CharacterHandler.Input

local Result = syn.secure_call(KeyHandler, FakeEnv)
local Event = syn.secure_call(Result.getKey, FakeEnv, "ApplyFallDamage", "plum")

--do whatever

everything said here is from the documentation

Metadata

Metadata

Labels

New functionAdding a previously missing or new functionStandard ChangesChanges to the standard

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions