RakNet
Hook the outgoing RakNet packet stream and toggle desync on the local connection.
RakNet is the transport under Roblox's replication. Hooking it puts you below remotes, at the level of individual packets — every outgoing packet, with its id, payload and reliability, before it leaves the machine.
Watching the wire
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)This is the sharpest tool here
Blocking or rewriting packets desyncs you from the server. raknet.desync does that deliberately and briefly; doing it by accident gets you kicked.