Universal Script 📌
1.4k Views
153 Executions

Hooking RF OnClientInvoke

Universal Script 📌
TTJY
TTJY
Verified Badge
Verified User
100 followers
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No 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

View Raw
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);


Comments

5
Log in to join the conversation. Login
dotgg's profile picture
dotggVerified
Verified Badge
Verified User
1 year ago

neat

1
oohluu's profile picture
oohluu1 year ago

Which I just read.

1
TTJY's profile picture
TTJYVerified
Verified Badge
Verified User
Uploader1 year ago

@oohluu ? wdym

1
oohluu's profile picture
oohluu1 year ago

@TTJY What is it for?

1
TTJY's profile picture
TTJYVerified
Verified Badge
Verified User
Uploader1 year ago

@oohluu return values to server

1

Tags

More universal scripts

See all
Script hub
384
1.7k
Bumped 33 minutes ago
Key System
Script hub
85
18
Approved 3 hours ago

Script hub

Blythe

Universal Script 📌
127
289
Approved 4 hours ago
Universal Script 📌
142
605
Approved 4 hours ago
Universal Script 📌
1.9k
7.2k
Bumped 6 hours ago
Universal Script 📌
7.9k
13.3k
Bumped 7 hours ago