SHARE
TWEET

Untitled

a guest Aug 14th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if getgenv().MTAPIMutex~=nil then return end;local function a()if is_protosmasher_caller~=nil then return 0 end;if elysianexecute~=nil then return 1 end;if fullaccess~=nil then return 2 end;if Synapse~=nil then return 3 end;return 4 end;local function b()local c=a()if c==0 then return is_protosmasher_caller end;if c==1 or c==3 then return checkcaller end;if c==2 then return IsLevel7 end;return nil end;if a()==2 then error("mt-api: Exploit not supported")end;local d={}local e={}local f={}local g={}local h={}local i={}local j={}local k={}local function l()local c=a()local m=b()local n=getrawmetatable(game)if c==0 then make_writeable(n)elseif c==2 then fullaccess(n)else setreadonly(n,false)end;local o=n.__index;local p=n.__newindex;local q=n.__namecall;n.__index=newcclosure(function(r,s)if m()then return o(r,s)end;if d[r]and d[r][s]then local t=d[r][s]if t["IsCallback"]==true then return t["Value"](r)else return t["Value"]end end;if g[s]then local t=g[s]if t["IsCallback"]==true then return t["Value"](r)else return t["Value"]end end;if j[r]and j[r][s]then return k[r][s]end;return o(r,s)end)n.__newindex=newcclosure(function(r,s,u)if m()then return p(r,s,u)end;if e[r]and e[r][s]then local t=e[r][s]if t["Callback"]==nil then return else t["Callback"](r,u)return end end;if h[s]then local t=h[s]if t["Callback"]==nil then return else t["Callback"](r,u)return end end;if j[r]and j[r][s]then local t=j[r][s]if type(u)~=t["Type"]then error("bad argument #3 to '"..s.."' ("..t["Type"].." expected, got "..type(s)..")")end;k[r][s]=u;return end;return p(r,s,u)end)n.__namecall=newcclosure(function(r,...)local v={...}local w=getnamecallmethod() if m()then if w=="AddGetHook"then if#v<1 then error("mt-api: Invalid argument count")end;local x=v[1]local u=v[2]local y=v[3]if type(x)~="string"then error("mt-api: Invalid hook type")end;if not d[r]then d[r]={}end;if y==true and type(u)~="function"then error("mt-api: Invalid callback function")end;d[r][x]={Value=u,IsCallback=y}local z=function()d[r][x]=nil end;return{remove=z,Remove=z}end;if w=="AddGlobalGetHook"then local x=v[1]local u=v[2]local y=v[3]if type(x)~="string"then error("mt-api: Invalid hook type")end;if y==true and type(u)~="function"then error("mt-api: Invalid callback function")end;g[x]={Value=u,IsCallback=y}local z=function()g[x]=nil end;return{remove=z,Remove=z}end;if w=="AddSetHook"then if#v<1 then error("mt-api: Invalid argument count")end;local x=v[1]local u=v[2]if type(x)~="string"then error("mt-api: Invalid hook type")end;if not e[r]then e[r]={}end;if type(u)=="function"then e[r][x]={Callback=u}else e[r][x]={Callback=nil}end;local z=function()e[r][x]=nil end;return{remove=z,Remove=z}end;if w=="AddGlobalSetHook"then if#v<1 then error("mt-api: Invalid argument count")end;local x=v[1]local u=v[2]if type(x)~="string"then error("mt-api: Invalid hook type")end;if type(u)=="function"then h[x]={Callback=u}else h[x]={Callback=nil}end;local z=function()h[x]=nil end;return{remove=z,Remove=z}end;if w=="AddCallHook"then if#v<2 then error("mt-api: Invalid argument count")end;local x=v[1]local u=v[2]if type(x)~="string"then error("mt-api: Invalid hook type")end;if type(u)~="function"then error("mt-api: Invalid argument #2 (not function)")end;if not f[r]then f[r]={}end;f[r][x]={Callback=u}local z=function()f[r][x]=nil end;return{remove=z,Remove=z}end;if w=="AddGlobalCallHook"then if#v<2 then error("mt-api: Invalid argument count")end;local x=v[1]local u=v[2]if type(x)~="string"then error("mt-api: Invalid hook type")end;if type(u)~="function"then error("mt-api: Invalid argument #2 (not function)")end;i[x]={Callback=u}local z=function()i[x]=nil end;return{remove=z,Remove=z}end;if w=="AddPropertyEmulator"then if#v<1 then error("mt-api: Invalid argument count")end;local x=v[1]if type(x)~="string"then error("mt-api: Invalid hook type")end;local u=o(r,x)local A=type(u)if not j[r]then j[r]={}end;if not k[r]then k[r]={}end;j[r][x]={Type=A}k[r][x]=o(r,x)local z=function()j[r][x]=nil;k[r][x]=nil end;return{remove=z,Remove=z}end;return q(r,...)end;if f[r]and f[r][w]then local t=f[r][w]return t["Callback"](o(r,w),unpack(v))end;if i[w]then local t=i[w]return t["Callback"](r,o(r,w),unpack(v))end;return q(r,...)end)if c==0 then make_readonly(n)elseif c==2 then else setreadonly(n,true)end end;l()getgenv().MTAPIMutex=true
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top