Advertisement
ZV0K

Xolium Leak

Aug 19th, 2023 (edited)
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.76 KB | None | 0 0
  1. getgenv().Xolium = {
  2. Options = {
  3. Key = "WHITELIST KEY HERE",
  4. Notifications = true,
  5. },
  6. Silent = {
  7. ["Enabled"] = true,
  8. ["UseKeybind"] = true,
  9. ["Keybind"] = "m",
  10. ["Predict"] = true,
  11. ["Prediction"] = 0.11,
  12. ["Aimpart"] = "UpperTorso",
  13. ["NearestCursorAimpart"] = true,
  14. },
  15. Camlock = {
  16. ["Enabled"] = true,
  17. ["Keybind"] = "q",
  18. ["Predict"] = True,
  19. ["Prediction"] = 0.1267,
  20. ["SmoothnessValue"] = 0.0881,
  21. ["Shake"] = false,
  22. ["ShakeValue"] = 10,
  23. ["Aimpart"] = "HumanoidRootPart",
  24. ["NearestCursorAimpart"] = true,
  25. },
  26. Fov = {
  27. Silent = {
  28. ["Visible"] = true,
  29. ["Filled"] = false,
  30. ["Size"] = 450,
  31. ["Thickness"] = 1.5,
  32. ["Transparency"] = 1,
  33. ["Color"] = Color3.fromRGB(0, 0, 0),
  34. },
  35. Camlock = {
  36. ["Visible"] = true,
  37. ["Filled"] = false,
  38. ["Size"] = 450,
  39. ["Thickness"] = 1.5,
  40. ["Transparency"] = 1,
  41. ["Color"] = Color3.fromRGB(0, 0, 0),
  42. },
  43. },
  44. Checks = {
  45. ["Wall"] = true,
  46. ["Knocked"] = true,
  47. ["DisableOnDeath"] = true,
  48. ["DisableOutsideFov"] = false,
  49. ["AntiGroundShots"] = true,
  50. },
  51. Resolver = {
  52. ["Enabled"] = true,
  53. },
  54. Macro = {
  55. ["Enabled"] = true,
  56. ["Keybind"] = "x",
  57. ["Type"] = "Normal",
  58. },
  59. AutoPrediction = {
  60. ["Enabled"] = true,
  61. },
  62. GunFov = {
  63. ["Enabled"] = false,
  64. ["DoubleBarrel"] = 22.5,
  65. ["Revolver"] = 27.5,
  66. ["Shotgun"] = 35,
  67. ["TacticalShotgun"] = 35,
  68. ["Smg"] = 25,
  69. ["Silencer"] = 32.5,
  70. },
  71. }
  72.  
  73.  
  74.  
  75. if getgenv().xoliumloaded == true then
  76. if getgenv().Xolium.Options.Notifications == true then
  77.  
  78. game.StarterGui:SetCore(
  79. "SendNotification",
  80. {
  81. Title = "prime leaked ya what can i say",
  82. Text = "Script Already Loaded Copied Settings.",
  83. Duration = 1.5
  84. }
  85. )
  86. end
  87. return
  88. end
  89. getgenv().xoliumloaded = true
  90.  
  91. if getgenv().Xolium.Options.Notifications == true then
  92. wait(0.5)
  93. game.StarterGui:SetCore(
  94. "SendNotification",
  95. {
  96. Title = "PRIME LEAKED U",
  97. Text = "welcome PRIME SONS.",
  98. Duration = 1.5
  99. }
  100. )
  101. end
  102.  
  103.  
  104. local Prey
  105. local Plr
  106.  
  107. local Players, Client, Mouse, RS, Camera =
  108. game:GetService("Players"),
  109. game:GetService("Players").LocalPlayer,
  110. game:GetService("Players").LocalPlayer:GetMouse(),
  111. game:GetService("RunService"),
  112. game:GetService("Workspace").CurrentCamera
  113.  
  114. local silentcircle = Drawing.new("Circle")
  115. local tracercircle = Drawing.new("Circle")
  116.  
  117. silentcircle.Transparency = getgenv().Xolium.Fov.Silent.Transparency
  118. silentcircle.Thickness = getgenv().Xolium.Fov.Silent.Thickness
  119. silentcircle.Color = getgenv().Xolium.Fov.Silent.Color
  120. silentcircle.Filled = getgenv().Xolium.Fov.Silent.Filled
  121. tracercircle.Transparency = getgenv().Xolium.Fov.Camlock.Transparency
  122. tracercircle.Thickness = getgenv().Xolium.Fov.Camlock.Thickness
  123. tracercircle.Color = getgenv().Xolium.Fov.Camlock.Color
  124. tracercircle.Filled = getgenv().Xolium.Fov.Camlock.Filled
  125.  
  126. local UpdateFOV = function ()
  127. if (not silentcircle and not tracercircle) then
  128. return silentcircle and tracercircle
  129. end
  130. tracercircle.Visible = getgenv().Xolium.Fov.Camlock.Visible
  131. tracercircle.Radius = getgenv().Xolium.Fov.Camlock.Size * 2
  132. tracercircle.Filled = getgenv().Xolium.Fov.Camlock.Filled
  133. tracercircle.Color = getgenv().Xolium.Fov.Camlock.Color
  134. tracercircle.Transparency = getgenv().Xolium.Fov.Camlock.Transparency
  135. tracercircle.Thickness = getgenv().Xolium.Fov.Camlock.Thickness
  136. tracercircle.Position = Vector2.new(Mouse.X, Mouse.Y + (game:GetService("GuiService"):GetGuiInset().Y))
  137.  
  138. silentcircle.Visible = getgenv().Xolium.Fov.Silent.Visible
  139. silentcircle.Radius = getgenv().Xolium.Fov.Silent.Size * 2
  140. silentcircle.Filled = getgenv().Xolium.Fov.Silent.Filled
  141. silentcircle.Color = getgenv().Xolium.Fov.Silent.Color
  142. silentcircle.Transparency = getgenv().Xolium.Fov.Silent.Transparency
  143. silentcircle.Thickness = getgenv().Xolium.Fov.Silent.Thickness
  144. silentcircle.Position = Vector2.new(Mouse.X, Mouse.Y + (game:GetService("GuiService"):GetGuiInset().Y))
  145. return silentcircle and tracercircle
  146. end
  147.  
  148. RS.Heartbeat:Connect(UpdateFOV)
  149.  
  150. local WallCheck = function(destination, ignore)
  151. local Origin = Camera.CFrame.p
  152. local CheckRay = Ray.new(Origin, destination - Origin)
  153. local Hit = game.workspace:FindPartOnRayWithIgnoreList(CheckRay, ignore)
  154. return Hit == nil
  155. end
  156.  
  157.  
  158. local WTS = function (Object)
  159. local ObjectVector = Camera:WorldToScreenPoint(Object.Position)
  160. return Vector2.new(ObjectVector.X, ObjectVector.Y)
  161. end
  162.  
  163. local IsOnScreen = function (Object)
  164. local IsOnScreen = Camera:WorldToScreenPoint(Object.Position)
  165. return IsOnScreen
  166. end
  167.  
  168. local FilterObjs = function (Object)
  169. if string.find(Object.Name, "Gun") then
  170. return
  171. end
  172. if table.find({"Part", "MeshPart", "BasePart"}, Object.ClassName) then
  173. return true
  174. end
  175. end
  176.  
  177. local ClosestPlrFromMouse = function()
  178. local Target, Closest = nil, 1/0
  179.  
  180. for _ ,v in pairs(Players:GetPlayers()) do
  181. if getgenv().Xolium.Checks.Wall then
  182. if (v.Character and v ~= Client and v.Character:FindFirstChild("HumanoidRootPart")) then
  183. wait(0.01)
  184. local Position, OnScreen = Camera:WorldToScreenPoint(v.Character.HumanoidRootPart.Position)
  185. local Distance = (Vector2.new(Position.X, Position.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  186.  
  187. if (silentcircle.Radius * 1.27 > Distance and Distance < Closest and OnScreen) and WallCheck(v.Character.HumanoidRootPart.Position, {Client, v.Character}) then
  188. Closest = Distance
  189. Target = v
  190.  
  191.  
  192. end
  193. end
  194. else
  195. if (v.Character and v ~= Client and v.Character:FindFirstChild("HumanoidRootPart")) then
  196. local Position, OnScreen = Camera:WorldToScreenPoint(v.Character.HumanoidRootPart.Position)
  197. local Distance = (Vector2.new(Position.X, Position.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  198.  
  199. if (silentcircle.Radius * 1.27 > Distance and Distance < Closest and OnScreen) then
  200. Closest = Distance
  201. Target = v
  202. end
  203. end
  204. end
  205. end
  206. return Target
  207. end
  208.  
  209. local ClosestPlrFromMouse2 = function()
  210. local Target, Closest = nil, tracercircle.Radius * 1.27
  211.  
  212. for _ ,v in pairs(Players:GetPlayers()) do
  213. if (v.Character and v ~= Client and v.Character:FindFirstChild("HumanoidRootPart")) then
  214. if getgenv().Xolium.Checks.Wall then
  215. local Position, OnScreen = Camera:WorldToScreenPoint(v.Character.HumanoidRootPart.Position)
  216. local Distance = (Vector2.new(Position.X, Position.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  217.  
  218. if (Distance < Closest and OnScreen) and WallCheck(v.Character.HumanoidRootPart.Position, {Client, v.Character}) then
  219. Closest = Distance
  220. Target = v
  221. end
  222. else
  223. local Position, OnScreen = Camera:WorldToScreenPoint(v.Character.HumanoidRootPart.Position)
  224. local Distance = (Vector2.new(Position.X, Position.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  225.  
  226. if (Distance < Closest and OnScreen) then
  227. Closest = Distance
  228. Target = v
  229. end
  230. end
  231. end
  232. end
  233. return Target
  234. end
  235.  
  236. local GetClosestBodyPart = function (character)
  237. local ClosestDistance = 1/0
  238. local BodyPart = nil
  239.  
  240. if (character and character:GetChildren()) then
  241. for _, x in next, character:GetChildren() do
  242. if FilterObjs(x) and IsOnScreen(x) then
  243. local Distance = (WTS(x) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  244. if (silentcircle.Radius * 1.27 > Distance and Distance < ClosestDistance) then
  245. ClosestDistance = Distance
  246. BodyPart = x
  247. end
  248. end
  249. end
  250. end
  251. return BodyPart
  252. end
  253.  
  254. local GetClosestBodyPartV2 = function (character)
  255. local ClosestDistance = 1/0
  256. local BodyPart = nil
  257.  
  258. if (character and character:GetChildren()) then
  259. for _, x in next, character:GetChildren() do
  260. if FilterObjs(x) and IsOnScreen(x) then
  261. local Distance = (WTS(x) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  262. if (Distance < ClosestDistance) then
  263. ClosestDistance = Distance
  264. BodyPart = x
  265. end
  266. end
  267. end
  268. end
  269. return BodyPart
  270. end
  271.  
  272. Mouse.KeyDown:Connect(function(Key)
  273. local Keybind = getgenv().Xolium.Camlock.Keybind:lower()
  274. if (Key == Keybind) then
  275. if getgenv().Xolium.Camlock.Enabled == true then
  276. IsTargetting = not IsTargetting
  277. if IsTargetting then
  278. Plr = ClosestPlrFromMouse2()
  279. else
  280. if Plr ~= nil then
  281. Plr = nil
  282. IsTargetting = false
  283. end
  284. end
  285. end
  286. end
  287. end)
  288.  
  289. Mouse.KeyDown:Connect(function(Key)
  290. local Keybind = getgenv().Xolium.Silent.Keybind:lower()
  291. if (Key == Keybind) and getgenv().Xolium.Silent.UseKeybind == true then
  292. if getgenv().Xolium.Silent.Enabled == true then
  293. getgenv().Xolium.Silent.Enabled = false
  294. if getgenv().Xolium.Options.Notifications == true then
  295.  
  296. game.StarterGui:SetCore(
  297. "SendNotification",
  298. {
  299. Title = "Xolium",
  300. Text = "Silent Disabled",
  301. Duration = 1.5
  302. }
  303. )
  304. end
  305. else
  306. getgenv().Xolium.Silent.Enabled = true
  307. if getgenv().Xolium.Options.Notifications == true then
  308.  
  309. game.StarterGui:SetCore(
  310. "SendNotification",
  311. {
  312. Title = "Xolium",
  313. Text = "Silent Enabled",
  314. Duration = 1.5
  315. }
  316. )
  317. end
  318. end
  319. end
  320. end)
  321.  
  322. local grmt = getrawmetatable(game)
  323. local backupindex = grmt.__index
  324. setreadonly(grmt, false)
  325.  
  326. grmt.__index = newcclosure(function(self, v)
  327. if (getgenv().Xolium.Silent.Enabled and Mouse and tostring(v) == "Hit") then
  328. if Prey and Prey.Character then
  329. if getgenv().Xolium.Silent.Predict then
  330. local endpoint = game.Players[tostring(Prey)].Character[getgenv().Xolium.Silent.Aimpart].CFrame + (
  331. game.Players[tostring(Prey)].Character[getgenv().Xolium.Silent.Aimpart].Velocity * getgenv().Xolium.Silent.Prediction
  332. )
  333. return (tostring(v) == "Hit" and endpoint)
  334. else
  335. local endpoint = game.Players[tostring(Prey)].Character[getgenv().Xolium.Silent.Aimpart].CFrame
  336. return (tostring(v) == "Hit" and endpoint)
  337. end
  338. end
  339. end
  340. return backupindex(self, v)
  341. end)
  342.  
  343.  
  344.  
  345. RS.Heartbeat:Connect(function()
  346. if getgenv().Xolium.Silent.Enabled then
  347. if Prey and Prey.Character and Prey.Character:WaitForChild(getgenv().Xolium.Silent.Aimpart) then
  348. if getgenv().Xolium.Resolver.Enabled == true and Prey.Character:WaitForChild("HumanoidRootPart").Velocity.magnitude > 70 then
  349. pcall(function()
  350. local TargetVel = Prey.Character[getgenv().Xolium.Silent.Aimpart]
  351. TargetVel.Velocity = Vector3.new(0, 0, 0)
  352. TargetVel.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
  353.  
  354. end)
  355. end
  356. if getgenv().Xolium.Checks.AntiGroundShots == true and Prey.Character:FindFirstChild("Humanoid") == Enum.HumanoidStateType.Freefall then
  357. pcall(function()
  358. local TargetVelv5 = Prey.Character[getgenv().Xolium.Silent.Aimpart]
  359. TargetVelv5.Velocity = Vector3.new(TargetVelv5.Velocity.X, (TargetVelv5.Velocity.Y * 5), TargetVelv5.Velocity.Z)
  360. TargetVelv5.AssemblyLinearVelocity = Vector3.new(TargetVelv5.Velocity.X, (TargetVelv5.Velocity.Y * 5), TargetVelv5.Velocity.Z)
  361. end)
  362. end
  363.  
  364. if getgenv().Xolium.Resolver.Enabled == true then
  365. pcall(function()
  366. local TargetVelv2 = Prey.Character[getgenv().Xolium.Silent.Aimpart]
  367. TargetVelv2.Velocity = Vector3.new(TargetVelv2.Velocity.X, 0, TargetVelv2.Velocity.Z)
  368. TargetVelv2.AssemblyLinearVelocity = Vector3.new(TargetVelv2.Velocity.X, 0, TargetVelv2.Velocity.Z)
  369. end)
  370. end
  371. end
  372. end
  373.  
  374. if getgenv().Xolium.Camlock.Enabled == true then
  375. if getgenv().Xolium.Resolver.Enabled == true and Plr and Plr.Character and Plr.Character:WaitForChild(getgenv().Xolium.Camlock.Aimpart) and Plr.Character:WaitForChild("HumanoidRootPart").Velocity.magnitude > 70 then
  376. pcall(function()
  377. local TargetVelv3 = Plr.Character[getgenv().Xolium.Camlock.Aimpart]
  378. TargetVelv3.Velocity = Vector3.new(0, 0, 0)
  379. TargetVelv3.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
  380. end)
  381. end
  382. if getgenv().Xolium.Checks.AntiGroundShots == true and Plr.Character:FindFirstChild("Humanoid") == Enum.HumanoidStateType.Freefall then
  383. pcall(function()
  384. local TargetVelv5 = Plr.Character[getgenv().Xolium.Camlock.Aimpart]
  385. TargetVelv5.Velocity = Vector3.new(TargetVelv5.Velocity.X, (TargetVelv5.Velocity.Y * 5), TargetVelv5.Velocity.Z)
  386. TargetVelv5.AssemblyLinearVelocity = Vector3.new(TargetVelv5.Velocity.X, (TargetVelv5.Velocity.Y * 5), TargetVelv5.Velocity.Z)
  387. end)
  388. end
  389.  
  390. if getgenv().Xolium.Resolver.Enabled == true and Plr and Plr.Character and Plr.Character:WaitForChild(getgenv().Xolium.Camlock.Aimpart) then
  391. pcall(function()
  392. local TargetVelv4 = Plr.Character[getgenv().Xolium.Camlock.Aimpart]
  393. TargetVelv4.Velocity = Vector3.new(TargetVelv4.Velocity.X, 0, TargetVelv4.Velocity.Z)
  394. TargetVelv4.AssemblyLinearVelocity = Vector3.new(TargetVelv4.Velocity.X, 0, TargetVelv4.Velocity.Z)
  395. end)
  396. end
  397. end
  398. end)
  399.  
  400. RS.RenderStepped:Connect(function()
  401. if getgenv().Xolium.Silent.Enabled then
  402. if getgenv().Xolium.Checks.Knocked == true and Prey and Prey.Character then
  403. local KOd = Prey.Character:WaitForChild("BodyEffects")["K.O"].Value
  404. local Grabbed = Prey.Character:FindFirstChild("GRABBING_CONSTRAINT") ~= nil
  405.  
  406. if KOd or Grabbed then
  407. Prey = nil
  408. end
  409. end
  410. end
  411. if getgenv().Xolium.Camlock.Enabled == true then
  412. if getgenv().Xolium.Checks.Knocked == true and Plr and Plr.Character then
  413. local KOd = Plr.Character:WaitForChild("BodyEffects")["K.O"].Value
  414. local Grabbed = Plr.Character:FindFirstChild("GRABBING_CONSTRAINT") ~= nil
  415.  
  416. if KOd or Grabbed then
  417. Plr = nil
  418. IsTargetting = false
  419. end
  420. end
  421.  
  422. if getgenv().Xolium.Checks.DisableOnDeath == true and Plr and Plr.Character:FindFirstChild("Humanoid") then
  423.  
  424. if Plr.Character.Humanoid.health < 0.1 then
  425. Plr = nil
  426. IsTargetting = false
  427. end
  428. end
  429. if getgenv().Xolium.Checks.DisableOnDeath == true and Plr and Plr.Character:FindFirstChild("Humanoid") then
  430.  
  431. if Client.Character.Humanoid.health < 0.1 then
  432. Plr = nil
  433. IsTargetting = false
  434. end
  435. end
  436. if getgenv().Xolium.Checks.DisableOutsideFov == true and Plr and Plr.Character and Plr.Character:WaitForChild("HumanoidRootPart") then
  437.  
  438. if
  439. Camlock.Radius <
  440. (Vector2.new(
  441. Camera:WorldToScreenPoint(Plr.Character.HumanoidRootPart.Position).X,
  442. Camera:WorldToScreenPoint(Plr.Character.HumanoidRootPart.Position).Y
  443. ) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  444. then
  445. Plr = nil
  446. IsTargetting = false
  447. end
  448. end
  449. if getgenv().Xolium.Camlock.Predict and Plr and Plr.Character and Plr.Character:FindFirstChild(getgenv().Xolium.Camlock.Aimpart) then
  450. if getgenv().Xolium.Camlock.Shake then
  451. local Main = CFrame.new(Camera.CFrame.p,Plr.Character[getgenv().Xolium.Camlock.Aimpart].Position + Plr.Character[getgenv().Xolium.Camlock.Aimpart].Velocity * getgenv().Xolium.Camlock.Prediction +
  452. Vector3.new(
  453. math.random(-getgenv().Xolium.Camlock.ShakeValue, getgenv().Xolium.Camlock.ShakeValue),
  454. math.random(-getgenv().Xolium.Camlock.ShakeValue, getgenv().Xolium.Camlock.ShakeValue),
  455. math.random(-getgenv().Xolium.Camlock.ShakeValue, getgenv().Xolium.Camlock.ShakeValue)
  456. ) * 0.1)
  457. Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().Xolium.Camlock.SmoothnessValue / 2, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  458. else
  459. local Main = CFrame.new(Camera.CFrame.p,Plr.Character[getgenv().Xolium.Camlock.Aimpart].Position + Plr.Character[getgenv().Xolium.Camlock.Aimpart].Velocity * getgenv().Xolium.Camlock.Prediction)
  460. Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().Xolium.Camlock.SmoothnessValue / 2, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  461. end
  462. elseif getgenv().Xolium.Camlock.Predict == false and Plr and Plr.Character and Plr.Character:FindFirstChild(getgenv().Xolium.Camlock.Aimpart) then
  463. if getgenv().Xolium.Camlock.Shake then
  464. local Main = CFrame.new(Camera.CFrame.p,Plr.Character[getgenv().Xolium.Camlock.Aimpart].Position +
  465. Vector3.new(
  466. math.random(-getgenv().Xolium.Camlock.ShakeValue, getgenv().Xolium.Camlock.ShakeValue),
  467. math.random(-getgenv().Xolium.Camlock.ShakeValue, getgenv().Xolium.Camlock.ShakeValue),
  468. math.random(-getgenv().Xolium.Camlock.ShakeValue, getgenv().Xolium.Camlock.ShakeValue)
  469. ) * 0.1)
  470. Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().Xolium.Camlock.SmoothnessValue / 2, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  471. else
  472. local Main = CFrame.new(Camera.CFrame.p,Plr.Character[getgenv().Xolium.Camlock.Aimpart].Position)
  473. Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().Xolium.Camlock.SmoothnessValue / 2, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  474. end
  475. end
  476. end
  477. end)
  478.  
  479. task.spawn(function ()
  480. while task.wait() do
  481. if getgenv().Xolium.Silent.Enabled then
  482. Prey = ClosestPlrFromMouse()
  483. end
  484. if Plr then
  485. if getgenv().Xolium.Camlock.Enabled and (Plr.Character) and getgenv().Xolium.Camlock.NearestCursorAimpart then
  486.  
  487. getgenv().Xolium.Camlock.Aimpart = tostring(GetClosestBodyPartV2(Plr.Character))
  488. end
  489. end
  490. if Prey then
  491. if getgenv().Xolium.Silent.Enabled and (Prey.Character) and getgenv().Xolium.Silent.NearestCursorAimpart then
  492.  
  493. getgenv().Xolium.Silent.Aimpart = tostring(GetClosestBodyPart(Prey.Character))
  494. end
  495. end
  496. end
  497. end)
  498.  
  499. getgenv().uhpoop = {
  500. ["Enabled"] = (getgenv().Xolium.GunFov.Enabled),
  501. ["Double-Barrel SG"] = {["FOV"] = (getgenv().Xolium.GunFov.DoubleBarrel)},
  502. ["DoubleBarrel"] = {["FOV"] = (getgenv().Xolium.GunFov.DoubleBarrel)},
  503. ["Revolver"] = {["FOV"] = (getgenv().Xolium.GunFov.Revolver)},
  504. ["SMG"] = {["FOV"] = (getgenv().Xolium.GunFov.Smg)},
  505. ["Shotgun"] = {["FOV"] = (getgenv().Xolium.GunFov.Shotgun)},
  506. ["TacticalShotgun"] = {["FOV"] = (getgenv().Xolium.GunFov.TacticalShotgun)},
  507. ["Silencer"] = {["FOV"] = (getgenv().Xolium.GunFov.Silencer)},
  508.  
  509. }
  510.  
  511. local Script = {Functions = {}}
  512. Script.Functions.getToolName = function(name)
  513. local split = string.split(string.split(name, "[")[2], "]")[1]
  514. return split
  515. end
  516. Script.Functions.getEquippedWeaponName = function()
  517. if (Client.Character) and Client.Character:FindFirstChildWhichIsA("Tool") then
  518. local Tool = Client.Character:FindFirstChildWhichIsA("Tool")
  519. 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
  520. return Script.Functions.getToolName(Tool.Name)
  521. end
  522. end
  523. return nil
  524. end
  525. RS.RenderStepped:Connect(function()
  526. if Script.Functions.getEquippedWeaponName() ~= nil then
  527. local WeaponSettings = getgenv().uhpoop[Script.Functions.getEquippedWeaponName()]
  528. if WeaponSettings ~= nil and getgenv().Xolium.GunFov.Enabled == true then
  529. getgenv().Xolium.Fov.Silent.Size = WeaponSettings.FOV
  530. else
  531. getgenv().Xolium.Fov.Silent.Size = getgenv().Xolium.Fov.Silent.Size
  532. end
  533. end
  534. end)
  535.  
  536.  
  537. local Player = game:GetService("Players").LocalPlayer
  538. local Mouse = Player:GetMouse()
  539. local SpeedGlitch = false
  540. Mouse.KeyDown:Connect(function(Key)
  541. if getgenv().Xolium.Macro.Type == "Normal" and getgenv().Xolium.Macro.Enabled == true and Key == getgenv().Xolium.Macro.Keybind then
  542. SpeedGlitch = not SpeedGlitch
  543. if SpeedGlitch == true then
  544. repeat game:GetService("RunService").Heartbeat:wait()
  545. keypress(0x49)
  546. game:GetService("RunService").Heartbeat:wait()
  547.  
  548. keypress(0x4F)
  549. game:GetService("RunService").Heartbeat:wait()
  550.  
  551. keyrelease(0x49)
  552. game:GetService("RunService").Heartbeat:wait()
  553.  
  554. keyrelease(0x4F)
  555. game:GetService("RunService").Heartbeat:wait()
  556.  
  557. until SpeedGlitch == false
  558. end
  559. end
  560. end)
  561.  
  562. getgenv().predictionTable = {
  563. {20, 0.12588},
  564. {30, 0.11911},
  565. {40, 0.12471},
  566. {50, 0.12766},
  567. {60, 0.12731},
  568. {70, 0.12951},
  569. {80, 0.13181},
  570. {90, 0.13573},
  571. {100, 0.13334},
  572. {110, 0.14552},
  573. {120, 0.14376},
  574. {130, 0.15669},
  575. {140, 0.12234},
  576. {150, 0.15214},
  577. }
  578. while getgenv().Xolium.AutoPrediction.Enabled do
  579. local ping = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString()
  580. local pingValue = string.split(ping, " ")[1]
  581. local pingNumber = tonumber(pingValue-10)
  582. local prediction = 0
  583. wait(0.2)
  584. for i = 1, #predictionTable do
  585. if pingNumber < predictionTable[i][1] then
  586. prediction = predictionTable[i][2]
  587. break
  588. end
  589. end
  590. task.wait(1.89)
  591. getgenv().Xolium.Silent.Prediction = prediction
  592. task.wait(0.00054)
  593. ifelse:
  594. warn('Auto pred has broken.')
  595. end
  596. print('hi')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement