Advertisement
scld

팬텀포스 조용한 조준

Sep 18th, 2021
954
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.90 KB | None | 0 0
  1. local cur = os.clock()
  2.  
  3. local rsRunner
  4.  
  5. for i,v in pairs(getconnections(game:GetService("RunService").RenderStepped)) do
  6.     if v.Function then
  7.         local taskManager = debug.getupvalues(v.Function)[1]
  8.         if type(taskManager) == "table" and rawget(taskManager, "_taskContainers") then
  9.             rsRunner = taskManager
  10.             break
  11.         end
  12.     end
  13. end
  14.  
  15. local charStep = next(rsRunner._taskContainers.char.tasks).task
  16.  
  17. local pf = {}
  18. pf.menu = debug.getupvalue(charStep, 27)
  19. pf.sound = debug.getupvalue(charStep, 24)
  20. pf.roundsystem = debug.getupvalue(charStep, 17)
  21. pf.cframe = debug.getupvalue(charStep, 15)
  22. pf.char = debug.getupvalue(charStep, 3)
  23. pf.camera = debug.getupvalue(charStep, 2)
  24. pf.network = debug.getupvalue(pf.char.setmovementmode, 20)
  25. pf.hud = debug.getupvalue(pf.char.setmovementmode, 10)
  26. pf.input = debug.getupvalue(pf.char.setmovementmode, 17)
  27. pf.gamelogic = debug.getupvalue(pf.char.setsprint, 1)
  28. pf.replication = debug.getupvalue(pf.hud.attachflag, 1)
  29.  
  30. do
  31.     local receive = getconnections(debug.getupvalue(pf.network.send, 1).OnClientEvent)[1].Function
  32.     pf.networkCache = debug.getupvalue(receive, 1)
  33. end
  34.  
  35. local fakeBarrel = Instance.new("Part")
  36. fakeBarrel.CanCollide = false
  37. fakeBarrel.Size = Vector3.new(1,1,1)
  38. fakeBarrel.Transparency = 1 -- comment out if you wanna see it in action or whatever
  39. fakeBarrel.Parent = workspace
  40.  
  41. local lp = game:GetService("Players").LocalPlayer
  42.  
  43. local currentgun = pf.gamelogic.currentgun
  44. setmetatable(pf.gamelogic, {
  45.     __index = function(t,k)
  46.         if k == "currentgun" then
  47.             return currentgun
  48.         end
  49.     end,
  50.     __newindex = function(t,k,v)
  51.         if k == "currentgun" then
  52.             currentgun = v
  53.            
  54.            
  55.            
  56.             if v ~= nil and v.step ~= nil then
  57.                 local gunStep = debug.getupvalues(v.step)
  58.                 gunStep = gunStep[#gunStep]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement