Property <Function> RBXScriptSignal.Function

Here me out, this is kind of a sparing Feature request but it will go a long way toward anti-exploitation (at least If I am not wrong.)

RBXScriptSignal.Function alludes to the function that the connection is binded to.

Aka

con=Part.Touched:connect(print);
print(con.Function)--function: 153BDB38

If you use this on RemoteEvent, the practical use for this is as such:
You connect a shared function between the server and client to the OnServerEvent event. When a RC7 Exploit wraps a function around the connection you can check something: if the wrapping function is == to the shared function.

If the Connections .Function property returns a function that is different than the one you have set for it, then you can detect interference from exploiters.

How would this work when multiple functions are connected to a signal? If your game is FilteringEnabled, an exploit can not override your handler for RemoteEvent.OnServerEvent.

1 Like

I assume you meant RBXScriptConnection. Signal is .Touched, Connection is what :connect returns.

If an exploiter can wrap :connect then they can just write to .Function anyway.

1 Like

Well shoot, I tried. Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.