Universal Script 📌
1.4k Views
108 Executions

Hooking RF OnClientInvoke

Universal Script 📌
TTJY
TTJY
Verified Badge
Verified User
100 followers
11 months 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
11 months ago

neat

1
oohluu's profile picture
oohluu11 months ago

Which I just read.

1
TTJY's profile picture
TTJYVerified
Verified Badge
Verified User
Uploader11 months ago

@oohluu ? wdym

1
oohluu's profile picture
oohluu11 months ago

@TTJY What is it for?

1
TTJY's profile picture
TTJYVerified
Verified Badge
Verified User
Uploader11 months ago

@oohluu return values to server

1

Tags

More universal scripts

See all
Universal Script 📌
25
6
Approved 17 minutes ago
Universal Script 📌
28
1
Approved 39 minutes ago
Universal Script 📌
3.0k
29.6k
Bumped 2 hours ago
Universal Script 📌
7.6k
79.7k
Bumped 2 hours ago
Universal Script 📌
8.0k
41.4k
Bumped 3 hours ago
Universal Script 📌
173
4
Approved 5 hours ago
Key System