
1.4k Views
108 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
getcallbackvalue sometimes give you a broken function which can't be use to return original value after you do a RF.OnClientInvoke = your_function So this script will give you a real function you can use to return original value
local RF = game:GetService("ReplicatedStorage").Modules.Network.RemoteFunction;
local cb = getcallbackvalue(RF, "OnClientInvoke");
local real = getupvalues(cb)[1];
--table.foreach(getupvalues(cb),print); -- Check if it 1 or 2 or 3 or ...
local hook;
hook = hookfunction(real, function(...)
print("Intercepted:", ...);
return hook(...); -- return original
end);









neat
Which I just read.
@oohluu ? wdym
@TTJY What is it for?
@oohluu return values to server