Colornapse_Themes

Untitled

Mar 24th, 2019
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. --[[
  2.  
  3. This isn't a fix.
  4. This is an absolutely disgusting bodge.
  5.  
  6. https://en.oxforddictionaries.com/definition/bodge
  7.  
  8. ]]--
  9.  
  10.  
  11. local hook
  12. hook = hookfunction(is_synapse_function, newcclosure(function(f)
  13. if getfenv(f).lolcats then
  14. return false
  15. end
  16.  
  17. return hook(f)
  18. end))
  19.  
  20. warn('Hooked isf.')
  21.  
  22. local engine
  23. for i, v in next, debug.getregistry() do
  24. if type(v) == 'function' then
  25. local s, upVs = pcall(debug.getupvalues, v)
  26. if s and upVs.engine then
  27. engine = upVs.engine
  28. break
  29. end
  30. end
  31. end
  32.  
  33. local upVHook
  34. upVHook = hookfunction(debug.getupvalues, newcclosure(function(...)
  35. local args = {...}
  36. if typeof(args[1]) == 'number' then
  37. warn('Number type, spoofing...')
  38.  
  39. local nUpVs = upVHook(...)
  40. nUpVs['engine'] = engine
  41. return nUpVs
  42. end
  43.  
  44. return upVHook(...)
  45. end))
  46.  
  47. warn('Hooked getupval')
  48.  
  49. local run, bounce
  50.  
  51. for i, v in next, debug.getregistry() do
  52. if type(v) == 'function' then
  53. local s, upVs = pcall(debug.getupvalues, v)
  54. if s and upVs.run then
  55. run = upVs.run
  56. break
  57. end
  58. end
  59. end
  60.  
  61. local network
  62.  
  63. for i, v in next, debug.getregistry() do
  64. if type(v) == 'function' then
  65. local upVs = debug.getupvalues(v)
  66. if upVs.network then
  67. network = upVs.network
  68. break
  69. end
  70. end
  71. end
  72.  
  73. bounce = network.bounce
  74.  
  75. local env = getsenv(game:service('ReplicatedFirst').Framework)
  76.  
  77. spawn(function()
  78. local oR = env.run
  79. while oR == env.run do wait() end
  80. wait()
  81. print(env.run.wait, 'finally...')
  82. end)
  83.  
  84. env.run = run
  85. env.globalnetwork = network
  86.  
  87. local vector = env.vector
  88.  
  89. local camera, cameraF
  90.  
  91. for i, v in next, debug.getregistry() do
  92. if type(v) == 'function' then
  93. local s, upVs = pcall(debug.getupvalues, v)
  94. if s and upVs.camera then
  95. camera = upVs.camera
  96. cameraF = v
  97. break
  98. end
  99. end
  100. end
  101.  
  102. local old = camera.setlookvector
  103. local new = function(...)
  104. local vector = vector
  105. return old(...)
  106. end
  107.  
  108. camera.setlookvector = new
  109. warn(debug.setupvalue(cameraF, 'camera', camera))
  110.  
  111. print'added to env'
  112.  
  113. local function upVAdd()
  114. print(run, bounce)
  115. end
  116.  
  117. local reg = debug.getregistry()
  118. getfenv().lolcats = true
  119.  
  120. debug.getregistry()[#reg] = upVAdd
  121.  
  122. print'added to registry'
  123.  
  124. local gc = getgc()
  125. getgc()[#gc] = upVAdd
  126.  
  127. print'added to gc'
  128.  
  129. spawn(function()
  130. loadstring(game:HttpGet('https://pastebin.com/raw/p2qZ3Fgw', true))()
  131. end)
Add Comment
Please, Sign In to add comment