How to inspect and modify outgoing server network RPCs in Luau:
local mt = getrawmetatable(game)
local oldNamecall = mt.__namecall
setreadonly(mt, false)
mt.__namecall = newcclosure(function(self, ...)
local method = getnamecallmethod()
local args = {...}
if method == "FireServer" and tostring(self) == "DamageRemote" then
print("[BLOCKED] Prevented incoming damage remote packet!")
return nil -- Drop packet
end
return oldNamecall(self, ...)
end)
setreadonly(mt, true)