RakNet
Hook the outgoing RakNet packet stream and toggle desync on the local connection.
RakNet is what Roblox replication runs on. Hooking it puts you below remotes, at the packet level: every outgoing packet with its id, data and reliability, before it leaves your PC.
Watching packets
local hook = raknet.add_send_hook(function(packet)
print(("id=%d size=%d channel=%d"):format(packet.Id, packet.Size, packet.OrderingChannel))
if packet.Id == 83 then
packet:Block() -- drop it entirely
end
end)
-- ... later
raknet.remove_send_hook(hook)Be careful with this one
Blocking or changing packets desyncs you from the server. raknet.desync does that on purpose for a short time. Doing it by accident gets you kicked.