Advertisement
Theskyler900

phantom forces

Oct 6th, 2019
557
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.09 KB | None | 0 0
  1. local getgc = (getgc or get_gc_objects);
  2. local getupvalues = (getupvalues or debug.getupvalues);
  3. local setupvalue = (setupvalue or debug.setupvalue);
  4. local getreg = (getreg or debug.getregistry);
  5.  
  6. local Windows = {}
  7. local Spotted = {}
  8.  
  9. local V = Vector3.new()
  10. local Client = {}
  11.  
  12. for i,v in next, getgc() do
  13. if network and gamelogic and effects and char then
  14. break
  15. end
  16.  
  17. if type(v) == "function" then
  18. for k,x in next, getupvalues(v) do
  19. if type(x) == "table" then
  20. for Func, Name in next, x do
  21. if Func == "loadgrenade" and "loadgun" then
  22. Client.char = x
  23. elseif Func == "breakwindows" then
  24. Client.effects = x
  25. elseif Func == "add" then
  26. Client.network = x
  27. Client.Funcs = x
  28. end
  29. end
  30. end
  31. end
  32. end
  33. end
  34.  
  35. local counter1 = 1
  36. local counter2 = 0
  37. local openups = 1
  38.  
  39. local Gun_Settings = {
  40. NoRecoil = false,
  41. NoFlash = false,
  42. NoSway = false,
  43. NoSpread = false,
  44. InstaReload = false,
  45. RapidFire = false,
  46. FullAuto = false,
  47. FireRate = false,
  48. InstaAim = false,
  49. BulletAcceleration = false
  50. }
  51.  
  52. local Char_Settings = {
  53. FallDamage = false,
  54. BreakWindows = false,
  55. InfJump = false,
  56. TimescaleMulti = false,
  57. NoClip = false
  58. }
  59.  
  60. local walktimescale = {
  61. MaxSpeed = false
  62. }
  63.  
  64. local Render_Settings = {
  65. SpotAll = false,
  66. Esp = false
  67. }
  68. local P = game:GetService'Players'
  69. local client = game:GetService'Players'.LocalPlayer
  70.  
  71. if Client then
  72. local LoadGun = Client.char.loadgun
  73. local LoadFrag = Client.char.loadgrenade
  74.  
  75. local Char = Client.char
  76.  
  77. local Network = Client.network
  78.  
  79. local Effects = Client.effects
  80.  
  81. local Send = Network.send
  82.  
  83. local spotclients = Client.Funcs.spotplayer
  84.  
  85. local function PlayerData()
  86. for i, v in ipairs(game:GetService'Players':GetPlayers'') do
  87. if v.TeamColor ~= client.TeamColor then
  88. table.insert(Spotted, v);
  89. end;
  90. end;
  91. return Spotted
  92. end
  93.  
  94. function BreakWindex()--llol
  95. for i,v in next, workspace:GetDescendants() do
  96. if v.Name:lower() == "window" then
  97. table.insert(Windows,v)
  98. end
  99. end
  100. Effects:breakwindows(Windows)
  101. end
  102.  
  103. do
  104. if Render_Settings.SpotAll then
  105. Client.spotclients(PlayerData())
  106. end
  107. end
  108.  
  109. do
  110. Network.send = function(self, ...)
  111. local Args = {...};
  112. if #Args > 0 then
  113. local Name = Args[1];
  114. if Name == 'changehealthx' then
  115. if #Args > 4 and Args[5] == 'Falling' and Char_Settings.FallDamage then
  116. return
  117. else
  118. if args[1] == 'equip' then
  119. openups = args[2]
  120. end
  121. end
  122. end
  123. return Send(self, ...)
  124. end
  125. end
  126.  
  127. --[[
  128. [TO DO LIST]
  129. {finished}
  130. ]]
  131. Char.loadgun = function(...)
  132. local args = {...}
  133. local data = args[2]
  134. local data2 = args[1]
  135.  
  136. if Gun_Settings.NoRecoil then
  137. data.camkickmin = V
  138. data.camkickmax = V
  139. data.aimcamkickmin = V
  140. data.aimcamkickmax = V
  141. data.aimtranskickmin = V
  142. data.aimtranskickmax = V
  143. data.transkickmin = V
  144. data.transkickmax = V
  145. data.rotkickmin = V
  146. data.rotkickmax = V
  147. data.aimrotkickmin = V
  148. data.aimrotkickmax = V
  149. end
  150.  
  151. if Gun_Settings.NoFlash then
  152. data.hideflash = true
  153. data.hideminimap = true
  154. end
  155.  
  156. if Gun_Settings.NoSway then
  157. data.swayamp = 0
  158. data.swayspeed = 0
  159. data.steadyspeed = 0
  160. data.breathspeed = 0
  161. end
  162.  
  163. if Gun_Settings.NoSpread then
  164. data.hipfirespreadrecover = 100
  165. data.hipfirespread = 0
  166. data.hipfirestability = 0
  167. end
  168.  
  169. if Gun_Settings.RapidFire then
  170. data.firerate = 1500
  171. data.variablefirerate = false
  172. data.firemodes = {true, 3, 1}
  173. data.requirechamber = false
  174. end
  175.  
  176. if Gun_Settings.FullAuto then
  177. data.variablefirerate = false
  178. data.firemodes = {true, 3, 1}
  179. data.requirechamber = false
  180. end
  181.  
  182. if Gun_Settings.InstaAim then
  183. data.aimspeed = 100
  184. data.magnifyspeed = 100
  185. end
  186.  
  187. --[[if Gun_Settings.FireRate then
  188. data.firerate = FireRateTXT.Text
  189. data.variablefirerate = false
  190. data.requirechamber = false
  191. end]]
  192.  
  193. --[[if Gun_Settings.BulletAcceleration then
  194. data2.acceleration = V;
  195. error'error might of failed to load'
  196. end]]
  197.  
  198. if walktimescale.MaxSpeed then
  199. data.walkspeed = 30
  200. end
  201.  
  202. if Gun_Settings.InstaReload then
  203. for i, v in next, data.animations do
  204. if string.find(string.lower(i), "reload") then
  205. data.animations[i].timescale = 0.0
  206. elseif string.find(string.lower(i), "pullbolt") then
  207. data.animations[i].timescale = 0.0
  208. elseif string.find(string.lower(i), "tacticalreload") then
  209. data.animations[i].timescale = 0.0
  210. elseif string.find(string.lower(i), "onfire") then
  211. data.animations[i].timescale = 0.0
  212. elseif string.find(string.lower(i), "inspect") then
  213. data.animations[i].timescale = 0.0
  214. elseif string.find(string.lower(i), "spot") then
  215. data.animations[i].timescale = 0.0
  216. elseif string.find(string.lower(i), "parkour") then
  217. data.animations[i].timescale = 0.0
  218. end
  219. end
  220. end
  221. args[2] = data
  222. return LoadGun(unpack(args))
  223. end
  224. end
  225. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement