Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- This isn't a fix.
- This is an absolutely disgusting bodge.
- https://en.oxforddictionaries.com/definition/bodge
- ]]--
- local hook
- hook = hookfunction(is_synapse_function, newcclosure(function(f)
- if getfenv(f).lolcats then
- return false
- end
- return hook(f)
- end))
- warn('Hooked isf.')
- local engine
- for i, v in next, debug.getregistry() do
- if type(v) == 'function' then
- local s, upVs = pcall(debug.getupvalues, v)
- if s and upVs.engine then
- engine = upVs.engine
- break
- end
- end
- end
- local upVHook
- upVHook = hookfunction(debug.getupvalues, newcclosure(function(...)
- local args = {...}
- if typeof(args[1]) == 'number' then
- warn('Number type, spoofing...')
- local nUpVs = upVHook(...)
- nUpVs['engine'] = engine
- return nUpVs
- end
- return upVHook(...)
- end))
- warn('Hooked getupval')
- local run, bounce
- for i, v in next, debug.getregistry() do
- if type(v) == 'function' then
- local s, upVs = pcall(debug.getupvalues, v)
- if s and upVs.run then
- run = upVs.run
- break
- end
- end
- end
- local network
- for i, v in next, debug.getregistry() do
- if type(v) == 'function' then
- local upVs = debug.getupvalues(v)
- if upVs.network then
- network = upVs.network
- break
- end
- end
- end
- bounce = network.bounce
- local env = getsenv(game:service('ReplicatedFirst').Framework)
- spawn(function()
- local oR = env.run
- while oR == env.run do wait() end
- wait()
- print(env.run.wait, 'finally...')
- end)
- env.run = run
- env.globalnetwork = network
- local vector = env.vector
- local camera, cameraF
- for i, v in next, debug.getregistry() do
- if type(v) == 'function' then
- local s, upVs = pcall(debug.getupvalues, v)
- if s and upVs.camera then
- camera = upVs.camera
- cameraF = v
- break
- end
- end
- end
- local old = camera.setlookvector
- local new = function(...)
- local vector = vector
- return old(...)
- end
- camera.setlookvector = new
- warn(debug.setupvalue(cameraF, 'camera', camera))
- print'added to env'
- local function upVAdd()
- print(run, bounce)
- end
- local reg = debug.getregistry()
- getfenv().lolcats = true
- debug.getregistry()[#reg] = upVAdd
- print'added to registry'
- local gc = getgc()
- getgc()[#gc] = upVAdd
- print'added to gc'
- spawn(function()
- loadstring(game:HttpGet('https://pastebin.com/raw/p2qZ3Fgw', true))()
- end)
Add Comment
Please, Sign In to add comment