Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[local rpcKey = {"‰","®","þ","÷"}
- local newKey = "00"
- local new = game.ReplicatedStorage.Function:InvokeServer("Combat", rpcKey, {"RefillKeys", newKey})
- print(new, #new)]]
- -- RemoteSpy for ProtoSmasher
- -- Written by Autumn on V3rmillion (fixed by 3dsboy08)
- local enabled = {
- -- Set any of these objects to false to stop logging them
- BindableEvent = true;
- BindableFunction = true;
- RemoteEvent = true;
- RemoteFunction = true;
- }
- function EscapeString(s, quoted)
- local v = ""
- for i = 1, string.len(s) do
- local c = string.byte(s, i)
- -- other escapees with values > 31 are "(34), \(92)
- if c < 32 or c == 34 or c == 92 then
- if c >= 7 and c <= 13 then
- c = string.sub("abtnvfr", c - 6, c - 6)
- elseif c == 34 or c == 92 then
- c = string.char(c)
- end
- v = v.."\\"..c
- else-- 32 <= v <= 255
- v = v..string.char(c)
- end
- end
- if quoted then return string.format("\"%s\"", v) end
- return v
- end
- local meta,oldmeta = getrawmetatable(game),{}
- make_writeable(meta)
- for i,v in next,meta do oldmeta[i] = v end
- function formatargs(args,showkeys)
- --if #args == 0 then return "N/A" end
- local strargs = {}
- for k,v in next,args do
- local argstr = ""
- if type(v) == "string" then
- argstr = "\"" .. v .. "\""
- elseif type(v) == "table" then
- argstr = "{" .. formatargs(v,true) .. "}"
- else
- argstr = tostring(v)
- end
- if showkeys and type(k) ~= "number" then
- table.insert(strargs,k.."="..argstr)
- else
- table.insert(strargs,argstr)
- end
- end
- return table.concat(strargs, ", ")
- end
- local realmethods = {}
- realmethods.Fire = Instance.new("BindableEvent").Fire
- realmethods.Invoke = Instance.new("BindableFunction").Invoke
- realmethods.FireServer = Instance.new("RemoteEvent").FireServer
- realmethods.InvokeServer = Instance.new("RemoteFunction").InvokeServer
- meta.__namecall = function(self, ...)
- if enabled[self.ClassName] then
- local args = {...}
- local ret = {oldmeta.__namecall(self, ...)}
- --print("hi")
- warn(self.ClassName.." called!\nPath: "..self.GetFullName(self).."\n".."Args: "..formatargs(args).."\nReturn: "..formatargs(ret))
- return unpack(ret)
- else
- return oldmeta.__namecall(self, ...)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement