Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mt = getrawmetatable(game);
- local old = {};
- for i, v in next, mt do old[i] = v end;
- setreadonly(mt,false)
- mt.__namecall = newcclosure(function(...)
- local method = tostring(getnamecallmethod());
- local args = {...}
- if method == 'FireServer' and args[1].Name == 'SayMessageRequest' then
- local t = {}
- local string = tostring(args[2]);
- local number = #args[2]
- for i = 1,#args[2] do
- table.insert(t,tostring(string:sub(number,number)))
- number = number - 1
- end
- args[2] = tostring(table.concat(t))
- return old.__namecall(unpack(args));
- end
- return old.__namecall(...)
- end)
- setreadonly(mt,true)
Add Comment
Please, Sign In to add comment