ZV0K

Feds Streamable

Sep 3rd, 2023 (edited)
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.31 KB | None | 0 0
  1. getgenv().Feds = {
  2. Silent = {
  3. ["Enabled"] = true, --// enables silentaim
  4. ["KeybindEnabled"] = true, --// enables keybind for silentaim
  5. ["Keybind"] = "M", --// yeha
  6. ["Part"] = "UpperTorso", --// leave as is unless yk what ur doing
  7. ["ClosestPart"] = true, --// gets closest aimpart to ur mouse instead of using 1 part
  8. ["PredictionEnabled"] = true, --// enables prediction
  9. ["Prediction"] = 0.129, --// obv..
  10. ["AutoPrediction"] = true, --// makes it so everytime ur ping changes it changes ur prediction value
  11. ["WallCheck"] = true, --// makes it so u cant lock onto ppl who are behind walls
  12. ["CheckForTargetDeath"] = true, --// unlocks when target dies
  13. ["DontShootGround"] = true, --// makes it so the silent doesnt shoot the ground
  14. },
  15. SilentFOV = {
  16. ["Visible"] = true, --// makes silent fov visible
  17. ["Radius"] = 500, --// i mean cmon its obvious what this does..
  18. },
  19. GunFOV = {
  20. ["Enabled"] = false, --// when u change weapons it will change ur silent fov to the desired value
  21. ["Double-Barrel SG"] = {["FOV"] = 30}, --// DB
  22. ["Revolver"] = {["FOV"] = 25}, --// Rev
  23. ["SMG"] = {["FOV"] = 20}, --// Uzi/Smg
  24. ["Shotgun"] = { ["FOV"] = 20}, --// SG
  25. ["Rifle"] = { ["FOV"] = 15}, --// Rifle
  26. ["TacticalShotgun"] = {["FOV"] = 20}, --// Tac
  27. ["Silencer"] = {["FOV"] = 20}, --// Silencer
  28. ["AK47"] = { ["FOV"] = 12.5}, --// AK
  29. ["AR"] = { ["FOV"] = 12.5}, --// AR
  30. },
  31. Camlock = {
  32. ["Enabled"] = true, --// enables camlock
  33. ["Keybind"] = "Q", --// camlock keybind when pressed locks onto ppl
  34. ["Aimpart"] = "UpperTorso", --// yeha
  35. ["ClosestPart"] = true, --// gets closest aimpart to ur mouse instead of using 1 part
  36. ["Smoothness"] = 1, --// changes the smoothness of the camlock for more humanized movement
  37. ["PredictionEnabled"] = false, --// enables prediction
  38. ["Prediction"] = 0.129, --// obv..
  39. ["WallCheck"] = true, --// checks if player is behind wall if so it wont lock on
  40. ["CheckForTargetDeath"] = false, --// unlocks when target is dead/dies
  41. ["DisableOnTargetDeath"] = true, --// disables when target is dead/dies
  42. ["DisableOnPlayerDeath"] = true, --// disables when u die
  43. ["DisableOutSideOfFOV"] = false, --// disables if player is outside of fov
  44. ["CamShake"] = true, --// enables humanized camera movement
  45. ["CamShakeValue"] = 7.5, --// humanized camera movement intensity
  46. },
  47. CamlockFOV = {
  48. ["Visible"] = true, --// makes camlock fov visible
  49. ["Radius"] = 500, --// i mean cmon its obvious what this does..
  50. },
  51. Misc = {
  52. ["DesyncResolver"] = true, --// resolves desync anti-lock
  53. ["DesyncDetection"] = 80, --// dont mess w this unless yk what u are doing
  54. ["UnderGroundResolver"] = true, --// resolves underground anti-lock
  55. ["SendNotifications"] = true, --// sends notification when u enable/disable something
  56. ["AutoP20"] = 0.1133, --// 20 ping auto prediction setting
  57. ["AutoP30"] = 0.1173, --// 30 ping auto prediction setting
  58. ["AutoP40"] = 0.1215, --// 40 ping auto prediction setting
  59. ["AutoP50"] = 0.1235, --// 50 ping auto prediction setting
  60. ["AutoP60"] = 0.1253, --// 60 ping auto prediction setting
  61. ["AutoP70"] = 0.1269, --// 70 ping auto prediction setting
  62. ["AutoP80"] = 0.1285, --// 80 ping auto prediction setting
  63. ["AutoP90"] = 0.1315, --// 90 ping auto prediction setting
  64. ["AutoP100"] = 0.1331, --// 100 ping auto prediction setting
  65. ["AutoP110"] = 0.1348, --// 110 ping auto prediction setting
  66. ["AutoP120"] = 0.1364, --// 120 ping auto prediction setting
  67. ["AutoP130"] = 0.1377, --// 130 ping auto prediction setting
  68. ["AutoP140"] = 0.1388, --// 140 ping auto prediction setting
  69. ["AutoP150"] = 0.1413, --// 150 ping auto prediction setting
  70. },
  71. }
  72.  
  73. local Prey = nil
  74. local Plr = nil
  75.  
  76. local Players, Client, Mouse, RS, Camera =
  77. game:GetService("Players"),
  78. game:GetService("Players").LocalPlayer,
  79. game:GetService("Players").LocalPlayer:GetMouse(),
  80. game:GetService("RunService"),
  81. game:GetService("Workspace").CurrentCamera
  82.  
  83. local Circle = Drawing.new("Circle")
  84. local CamlockCircle = Drawing.new("Circle")
  85.  
  86. Circle.Color = Color3.new(125,100,255)
  87. Circle.Thickness = 1.5
  88. CamlockCircle.Color = Color3.new(125,100,255)
  89. CamlockCircle.Thickness = 1.5
  90.  
  91. local UpdateFOV = function ()
  92. if (not Circle and not CamlockCircle) then
  93. return Circle and CamlockCircle
  94. end
  95. CamlockCircle.Visible = getgenv().Feds.CamlockFOV.Visible
  96. CamlockCircle.Radius = getgenv().Feds.CamlockFOV.Radius * 2
  97. CamlockCircle.Position = Vector2.new(Mouse.X, Mouse.Y + (game:GetService("GuiService"):GetGuiInset().Y))
  98.  
  99. Circle.Visible = getgenv().Feds.SilentFOV.Visible
  100. Circle.Radius = getgenv().Feds.SilentFOV.Radius * 2
  101. Circle.Position = Vector2.new(Mouse.X, Mouse.Y + (game:GetService("GuiService"):GetGuiInset().Y))
  102. return Circle and CamlockCircle
  103. end
  104.  
  105. RS.Heartbeat:Connect(UpdateFOV)
  106.  
  107. local WallCheck = function(destination, ignore)
  108. local Origin = Camera.CFrame.p
  109. local CheckRay = Ray.new(Origin, destination - Origin)
  110. local Hit = game.workspace:FindPartOnRayWithIgnoreList(CheckRay, ignore)
  111. return Hit == nil
  112. end
  113.  
  114. local WTS = function (Object)
  115. local ObjectVector = Camera:WorldToScreenPoint(Object.Position)
  116. return Vector2.new(ObjectVector.X, ObjectVector.Y)
  117. end
  118.  
  119. local IsOnScreen = function (Object)
  120. local IsOnScreen = Camera:WorldToScreenPoint(Object.Position)
  121. return IsOnScreen
  122. end
  123.  
  124. local FilterObjs = function (Object)
  125. if string.find(Object.Name, "Gun") then
  126. return
  127. end
  128. if table.find({"Part", "MeshPart", "BasePart"}, Object.ClassName) then
  129. return true
  130. end
  131. end
  132.  
  133. local ClosestPlrFromMouse = function()
  134. local Target, Closest = nil, 1/0
  135.  
  136. for _ ,v in pairs(Players:GetPlayers()) do
  137. if getgenv().Feds.Silent.WallCheck then
  138. if (v.Character and v ~= Client and v.Character:FindFirstChild("HumanoidRootPart")) then
  139. local Position, OnScreen = Camera:WorldToScreenPoint(v.Character.HumanoidRootPart.Position)
  140. local Distance = (Vector2.new(Position.X, Position.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  141.  
  142. if (Circle.Radius > Distance and Distance < Closest and OnScreen) and WallCheck(v.Character.HumanoidRootPart.Position, {Client, v.Character}) then
  143. Closest = Distance
  144. Target = v
  145. end
  146. end
  147. else
  148. if (v.Character and v ~= Client and v.Character:FindFirstChild("HumanoidRootPart")) then
  149. local Position, OnScreen = Camera:WorldToScreenPoint(v.Character.HumanoidRootPart.Position)
  150. local Distance = (Vector2.new(Position.X, Position.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  151.  
  152. if (Circle.Radius > Distance and Distance < Closest and OnScreen) then
  153. Closest = Distance
  154. Target = v
  155. end
  156. end
  157. end
  158. end
  159. return Target
  160. end
  161.  
  162. local ClosestPlrFromMouse2 = function()
  163. local Target, Closest = nil, CamlockCircle.Radius * 1.5
  164.  
  165. for _ ,v in pairs(Players:GetPlayers()) do
  166. if (v.Character and v ~= Client and v.Character:FindFirstChild("HumanoidRootPart")) then
  167. if getgenv().Feds.Camlock.WallCheck then
  168. local Position, OnScreen = Camera:WorldToScreenPoint(v.Character.HumanoidRootPart.Position)
  169. local Distance = (Vector2.new(Position.X, Position.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  170.  
  171. if (Distance < Closest and OnScreen) and WallCheck(v.Character.HumanoidRootPart.Position, {Client, v.Character}) then
  172. Closest = Distance
  173. Target = v
  174. end
  175. else
  176. local Position, OnScreen = Camera:WorldToScreenPoint(v.Character.HumanoidRootPart.Position)
  177. local Distance = (Vector2.new(Position.X, Position.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  178.  
  179. if (Distance < Closest and OnScreen) then
  180. Closest = Distance
  181. Target = v
  182. end
  183. end
  184. end
  185. end
  186. return Target
  187. end
  188.  
  189. local GetClosestBodyPart = function (character)
  190. local ClosestDistance = 1/0
  191. local BodyPart = nil
  192.  
  193. if (character and character:GetChildren()) then
  194. for _, x in next, character:GetChildren() do
  195. if FilterObjs(x) and IsOnScreen(x) then
  196. local Distance = (WTS(x) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  197. if (Circle.Radius > Distance and Distance < ClosestDistance) then
  198. ClosestDistance = Distance
  199. BodyPart = x
  200. end
  201. end
  202. end
  203. end
  204. return BodyPart
  205. end
  206.  
  207. local GetClosestBodyPartV2 = function (character)
  208. local ClosestDistance = 1/0
  209. local BodyPart = nil
  210.  
  211. if (character and character:GetChildren()) then
  212. for _, x in next, character:GetChildren() do
  213. if FilterObjs(x) and IsOnScreen(x) then
  214. local Distance = (WTS(x) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  215. if (Distance < ClosestDistance) then
  216. ClosestDistance = Distance
  217. BodyPart = x
  218. end
  219. end
  220. end
  221. end
  222. return BodyPart
  223. end
  224.  
  225. Mouse.KeyDown:Connect(function(Key)
  226. local Keybind = getgenv().Feds.Camlock.Keybind:lower()
  227. if (Key == Keybind) then
  228. if getgenv().Feds.Camlock.Enabled == true then
  229. IsTargetting = not IsTargetting
  230. if IsTargetting then
  231. Plr = ClosestPlrFromMouse2()
  232. else
  233. if Plr ~= nil then
  234. Plr = nil
  235. IsTargetting = false
  236. end
  237. end
  238. end
  239. end
  240. end)
  241.  
  242. Mouse.KeyDown:Connect(function(Key)
  243. local Keybind = getgenv().Feds.Silent.Keybind:lower()
  244. if (Key == Keybind) and getgenv().Feds.Silent.KeybindEnabled == true then
  245. if getgenv().Feds.Silent.Enabled == true then
  246. getgenv().Feds.Silent.Enabled = false
  247. if getgenv().Feds.Misc.SendNotifications then
  248. game.StarterGui:SetCore(
  249. "SendNotification",
  250. {
  251. Title = "Feds",
  252. Text = "Disabled Silent Aim",
  253. Icon = "",
  254. Duration = 1
  255. }
  256. )
  257. end
  258. else
  259. getgenv().Feds.Silent.Enabled = true
  260. if getgenv().Feds.Misc.SendNotifications then
  261. game.StarterGui:SetCore(
  262. "SendNotification",
  263. {
  264. Title = "Feds",
  265. Text = "Enabled Silent Aim",
  266. Icon = "",
  267. Duration = 1
  268. }
  269. )
  270. end
  271. end
  272. end
  273. end
  274. )
  275.  
  276.  
  277.  
  278. local grmt = getrawmetatable(game)
  279. local backupindex = grmt.__index
  280. setreadonly(grmt, false)
  281.  
  282. grmt.__index = newcclosure(function(self, v)
  283. if (getgenv().Feds.Silent.Enabled and Mouse and tostring(v) == "Hit") then
  284. if Prey and Prey.Character then
  285. if getgenv().Feds.Silent.PredictionEnabled then
  286. local endpoint = game.Players[tostring(Prey)].Character[getgenv().Feds.Silent.Aimpart].CFrame + (
  287. game.Players[tostring(Prey)].Character[getgenv().Feds.Silent.Aimpart].Velocity * getgenv().Feds.Silent.Prediction
  288. )
  289. return (tostring(v) == "Hit" and endpoint)
  290. else
  291. local endpoint = game.Players[tostring(Prey)].Character[getgenv().Feds.Silent.Aimpart].CFrame
  292. return (tostring(v) == "Hit" and endpoint)
  293. end
  294. end
  295. end
  296. return backupindex(self, v)
  297. end)
  298.  
  299.  
  300.  
  301. RS.Heartbeat:Connect(function()
  302. if getgenv().Feds.Silent.Enabled then
  303. if Prey and Prey.Character and Prey.Character:WaitForChild(getgenv().Feds.Silent.Aimpart) then
  304. if getgenv().Feds.Misc.DesyncResolver == true and Prey.Character:WaitForChild("HumanoidRootPart").Velocity.magnitude > getgenv().Feds.Misc.DesyncDetection then
  305. pcall(function()
  306. local TargetVel = Prey.Character[getgenv().Feds.Silent.Aimpart]
  307. TargetVel.Velocity = Vector3.new(0, 0, 0)
  308. TargetVel.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
  309. end)
  310. end
  311. if getgenv().Feds.Silent.DontShootGround == true and Prey.Character:FindFirstChild("Humanoid") == Enum.HumanoidStateType.Freefall then
  312. pcall(function()
  313. local TargetVelv5 = Prey.Character[getgenv().Feds.Silent.Aimpart]
  314. TargetVelv5.Velocity = Vector3.new(TargetVelv5.Velocity.X, (TargetVelv5.Velocity.Y * 0.5), TargetVelv5.Velocity.Z)
  315. TargetVelv5.AssemblyLinearVelocity = Vector3.new(TargetVelv5.Velocity.X, (TargetVelv5.Velocity.Y * 0.5), TargetVelv5.Velocity.Z)
  316. end)
  317. end
  318. if getgenv().Feds.Misc.UnderGroundResolver == true then
  319. pcall(function()
  320. local TargetVelv2 = Prey.Character[getgenv().Feds.Silent.Aimpart]
  321. TargetVelv2.Velocity = Vector3.new(TargetVelv2.Velocity.X, 0, TargetVelv2.Velocity.Z)
  322. TargetVelv2.AssemblyLinearVelocity = Vector3.new(TargetVelv2.Velocity.X, 0, TargetVelv2.Velocity.Z)
  323. end)
  324. end
  325. end
  326. end
  327. if getgenv().Feds.Camlock.Enabled == true then
  328. if getgenv().Feds.Misc.DesyncResolver == true and Plr and Plr.Character and Plr.Character:WaitForChild(getgenv().Feds.Camlock.Aimpart) and Plr.Character:WaitForChild("HumanoidRootPart").Velocity.magnitude > getgenv().Feds.Misc.DesyncDetection then
  329. pcall(function()
  330. local TargetVelv3 = Plr.Character[getgenv().Feds.Camlock.Aimpart]
  331. TargetVelv3.Velocity = Vector3.new(0, 0, 0)
  332. TargetVelv3.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
  333. end)
  334. end
  335. if getgenv().Feds.Misc.UnderGroundResolver == true and Plr and Plr.Character and Plr.Character:WaitForChild(getgenv().Feds.Camlock.Aimpart)then
  336. pcall(function()
  337. local TargetVelv4 = Plr.Character[getgenv().Feds.Camlock.Aimpart]
  338. TargetVelv4.Velocity = Vector3.new(TargetVelv4.Velocity.X, 0, TargetVelv4.Velocity.Z)
  339. TargetVelv4.AssemblyLinearVelocity = Vector3.new(TargetVelv4.Velocity.X, 0, TargetVelv4.Velocity.Z)
  340. end)
  341. end
  342. end
  343. end)
  344.  
  345. RS.RenderStepped:Connect(function()
  346. if getgenv().Feds.Silent.Enabled then
  347. if getgenv().Feds.Silent.CheckForTargetDeath == true and Prey and Prey.Character then
  348. local KOd = Prey.Character:WaitForChild("BodyEffects")["K.O"].Value
  349. local Grabbed = Prey.Character:FindFirstChild("GRABBING_CONSTRAINT") ~= nil
  350. if KOd or Grabbed then
  351. Prey = nil
  352. end
  353. end
  354. end
  355. if getgenv().Feds.Camlock.Enabled == true then
  356. if getgenv().Feds.Camlock.CheckForTargetDeath == true and Plr and Plr.Character then
  357. local KOd = Plr.Character:WaitForChild("BodyEffects")["K.O"].Value
  358. local Grabbed = Plr.Character:FindFirstChild("GRABBING_CONSTRAINT") ~= nil
  359. if KOd or Grabbed then
  360. Plr = nil
  361. IsTargetting = false
  362. end
  363. end
  364. if getgenv().Feds.Camlock.DisableOnTargetDeath == true and Plr and Plr.Character:FindFirstChild("Humanoid") then
  365. if Plr.Character.Humanoid.health < 4 then
  366. Plr = nil
  367. IsTargetting = false
  368. end
  369. end
  370. if getgenv().Feds.Camlock.DisableOnPlayerDeath == true and Plr and Plr.Character:FindFirstChild("Humanoid") then
  371. if Client.Character.Humanoid.health < 4 then
  372. Plr = nil
  373. IsTargetting = false
  374. end
  375. end
  376. if getgenv().Feds.Camlock.DisableOutSideOfFOV == true and Plr and Plr.Character and Plr.Character:WaitForChild("HumanoidRootPart") then
  377. if
  378. CamlockCircle.Radius <
  379. (Vector2.new(
  380. Camera:WorldToScreenPoint(Plr.Character.HumanoidRootPart.Position).X,
  381. Camera:WorldToScreenPoint(Plr.Character.HumanoidRootPart.Position).Y
  382. ) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  383. then
  384. Plr = nil
  385. IsTargetting = false
  386. end
  387. end
  388. if getgenv().Feds.Camlock.PredictionEnabled and Plr and Plr.Character and Plr.Character:FindFirstChild(getgenv().Feds.Camlock.Aimpart) then
  389. if getgenv().Feds.Camlock.CamShake then
  390. local Main = CFrame.new(Camera.CFrame.p,Plr.Character[getgenv().Feds.Camlock.Aimpart].Position + Plr.Character[getgenv().Feds.Camlock.Aimpart].Velocity * getgenv().Feds.Camlock.Prediction +
  391. Vector3.new(
  392. math.random(-getgenv().Feds.Camlock.CamShakeValue, getgenv().Feds.Camlock.CamShakeValue),
  393. math.random(-getgenv().Feds.Camlock.CamShakeValue, getgenv().Feds.Camlock.CamShakeValue),
  394. math.random(-getgenv().Feds.Camlock.CamShakeValue, getgenv().Feds.Camlock.CamShakeValue)
  395. ) * 0.1)
  396. Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().Feds.Camlock.Smoothness / 2, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  397. else
  398. local Main = CFrame.new(Camera.CFrame.p,Plr.Character[getgenv().Feds.Camlock.Aimpart].Position + Plr.Character[getgenv().Feds.Camlock.Aimpart].Velocity * getgenv().Feds.Camlock.Prediction)
  399. Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().Feds.Camlock.Smoothness / 2, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  400. end
  401. elseif getgenv().Feds.Camlock.PredictionEnabled == false and Plr and Plr.Character and Plr.Character:FindFirstChild(getgenv().Feds.Camlock.Aimpart) then
  402. if getgenv().Feds.Camlock.CamShake then
  403. local Main = CFrame.new(Camera.CFrame.p,Plr.Character[getgenv().Feds.Camlock.Aimpart].Position +
  404. Vector3.new(
  405. math.random(-getgenv().Feds.Camlock.CamShakeValue, getgenv().Feds.Camlock.CamShakeValue),
  406. math.random(-getgenv().Feds.Camlock.CamShakeValue, getgenv().Feds.Camlock.CamShakeValue),
  407. math.random(-getgenv().Feds.Camlock.CamShakeValue, getgenv().Feds.Camlock.CamShakeValue)
  408. ) * 0.1)
  409. Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().Feds.Camlock.Smoothness / 2, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  410. else
  411. local Main = CFrame.new(Camera.CFrame.p,Plr.Character[getgenv().Feds.Camlock.Aimpart].Position)
  412. Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().Feds.Camlock.Smoothness / 2, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  413. end
  414. end
  415. end
  416. end)
  417.  
  418. task.spawn(function ()
  419. while task.wait() do
  420. if getgenv().Feds.Silent.Enabled then
  421. Prey = ClosestPlrFromMouse()
  422. end
  423. if Plr then
  424. if getgenv().Feds.Camlock.Enabled and (Plr.Character) and getgenv().Feds.Camlock.ClosestPart then
  425. getgenv().Feds.Camlock.Aimpart = tostring(GetClosestBodyPartV2(Plr.Character))
  426. end
  427. end
  428. if Prey then
  429. if getgenv().Feds.Silent.Enabled and (Prey.Character) and getgenv().Feds.Silent.ClosestPart then
  430. getgenv().Feds.Silent.Aimpart = tostring(GetClosestBodyPart(Prey.Character))
  431. end
  432. end
  433. end
  434. end)
  435.  
  436. local Script = {Functions = {}}
  437. Script.Functions.getToolName = function(name)
  438. local split = string.split(string.split(name, "[")[2], "]")[1]
  439. return split
  440. end
  441. Script.Functions.getEquippedWeaponName = function()
  442. if (Client.Character) and Client.Character:FindFirstChildWhichIsA("Tool") then
  443. local Tool = Client.Character:FindFirstChildWhichIsA("Tool")
  444. if string.find(Tool.Name, "%[") and string.find(Tool.Name, "%]") and not string.find(Tool.Name, "Wallet") and not string.find(Tool.Name, "Phone") then
  445. return Script.Functions.getToolName(Tool.Name)
  446. end
  447. end
  448. return nil
  449. end
  450. RS.RenderStepped:Connect(function()
  451. if Script.Functions.getEquippedWeaponName() ~= nil then
  452. local WeaponSettings = getgenv().Feds.GunFOV[Script.Functions.getEquippedWeaponName()]
  453. if WeaponSettings ~= nil and getgenv().Feds.GunFOV.Enabled == true then
  454. getgenv().Feds.SilentFOV.Radius = WeaponSettings.FOV
  455. else
  456. getgenv().Feds.SilentFOV.Radius = getgenv().Feds.SilentFOV.Radius
  457. end
  458. end
  459. end)
  460.  
  461.  
  462.  
  463.  
  464. while getgenv().Feds.Silent.AutoPrediction == true do
  465. local ping = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString()
  466. local pingValue = string.split(ping, " ")[1]
  467. local pingNumber = tonumber(pingValue)
  468.  
  469. if pingNumber < 30 then
  470. Feds.Silent.Prediction = (getgenv().Feds.Misc.AutoP20)
  471. elseif pingNumber < 40 then
  472. Feds.Silent.Prediction = (getgenv().Feds.Misc.AutoP30)
  473. elseif pingNumber < 50 then
  474. Feds.Silent.Prediction = (getgenv().Feds.Misc.AutoP40)
  475. elseif pingNumber < 60 then
  476. Feds.Silent.Prediction = (getgenv().Feds.Misc.AutoP50)
  477. elseif pingNumber < 70 then
  478. Feds.Silent.Prediction = (getgenv().Feds.Misc.AutoP60)
  479. elseif pingNumber < 80 then
  480. Feds.Silent.Prediction = (getgenv().Feds.Misc.AutoP70)
  481. elseif pingNumber < 90 then
  482. Feds.Silent.Prediction = (getgenv().Feds.Misc.AutoP80)
  483. elseif pingNumber < 100 then
  484. Feds.Silent.Prediction = (getgenv().Feds.Misc.AutoP90)
  485. elseif pingNumber < 110 then
  486. Feds.Silent.Prediction = (getgenv().Feds.Misc.AutoP100)
  487. elseif pingNumber < 120 then
  488. Feds.Silent.Prediction = (getgenv().Feds.Misc.AutoP110)
  489. elseif pingNumber < 130 then
  490. Feds.Silent.Prediction = (getgenv().Feds.Misc.AutoP120)
  491. elseif pingNumber < 140 then
  492. Feds.Silent.Prediction = (getgenv().Feds.Misc.AutoP130)
  493. elseif pingNumber < 150 then
  494. Feds.Silent.Prediction = (getgenv().Feds.Misc.AutoP140)
  495. elseif pingNumber < 160 then
  496. Feds.Silent.Prediction = (getgenv().Feds.Misc.AutoP150)
  497. end
  498.  
  499. wait(1)
  500. end
Add Comment
Please, Sign In to add comment