Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --//U_M9's Remote Explorer!
- --//https://discord.me/reh
- local GameMeta = getrawmetatable(game)
- local GameNamecall = GameMeta.__namecall
- local RemoteCount = 0
- if setreadonly then
- setreadonly(GameMeta, false)
- end
- local TableStorage = {
- EnabledEvents = {
- ["Fire"] = true,
- ["FireServer"] = true,
- ["Invoke"] = true,
- ["InvokeServer"] = true,
- };
- Instances = {
- ["FireServer"] = Instance.new("RemoteEvent").FireServer,
- ["InvokeServer"] = Instance.new("RemoteFunction").InvokeServer,
- ["Fire"] = Instance.new("BindableEvent").Fire,
- ["Invoke"] = Instance.new("BindableFunction").Invoke,
- };
- };
- function GetArguments(item)
- if type(item) == "string" then
- return "\""..item.."\""
- elseif type(item) == "table" then
- local str = "{"
- local max = 0
- local numb = 1
- for i,v in pairs(item) do
- max = max+1
- end
- for i,v in pairs(item) do
- if numb == max then
- str = str.."["..GetArguments(i).."] = "..GetArguments(v)
- else
- str = str.."["..GetArguments(i).."] = "..GetArguments(v)..", "
- end
- numb = numb + 1
- end
- str = str.."}"
- return str
- elseif type(item) == "userdata" then
- local a,b = pcall(function()
- return item.ClassName
- end)
- if a then
- return item:GetFullName()
- else
- if tostring(b):match("not a valid member of %w+") then
- local c, d = tostring(b):match("not a valid member of %w+"):find("of ")
- local class = tostring(b):match("not a valid member of %w+"):sub(d+1)
- return class..".new(".. tostring(item) ..")"
- end
- end
- else
- return tostring(item)
- end
- end
- GameMeta.__namecall = function (t, ...)
- local args = {...}
- local k = args[#args]
- if TableStorage.EnabledEvents[k] then
- table.remove(args)
- RemoteCount = RemoteCount + 1
- warn("\n [Remote Count : "..tostring(RemoteCount).."] \n [Event : "..k.."] \n [ClassName : "..t.ClassName.."] \n [Path : "..t:GetFullName().."] \n [Args : "..GetArguments(args).."]")
- return TableStorage.Instances[k](t,...)
- else
- return GameNamecall(t,...)
- end
- end
Add Comment
Please, Sign In to add comment