Advertisement
ZV0K

Lorix V1 🟣

Sep 23rd, 2023
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.20 KB | None | 0 0
  1. --[[
  2. Releasing this due to it being leaked / sold amongst dahoodian retards, In which one of them is now trying to sell it after a year of it being leaked..?
  3. And yes, I know this code is horrible / unoptimised but guess what idc this is old as hell, I do not care about this script anymore code in it is shit.
  4. credits to dylan for helping on this and anyone else who helped :)
  5. ]]
  6. repeat wait() until game:IsLoaded()
  7. local Memory = 800.33
  8. task.spawn(function()
  9. while task.wait(math.random(2, 3)) do
  10. Memory = tostring(math.random(750, 900)) .. "." .. tostring(math.random(10, 99))
  11. end
  12. end)
  13. game:GetService("RunService").RenderStepped:Connect(function()
  14. pcall(function()
  15. for i,v in pairs(game:GetService("CoreGui").RobloxGui.PerformanceStats:GetChildren()) do
  16. if v.Name == "PS_Button" then
  17. if v.StatsMiniTextPanelClass.TitleLabel.Text == "Mem" then
  18. v.StatsMiniTextPanelClass.ValueLabel.Text = tostring(Memory) .. " MB"
  19. end
  20. end
  21. end
  22. end)
  23. pcall(function()
  24. if game:GetService("CoreGui").RobloxGui.PerformanceStats["PS_Viewer"].Frame.TextLabel.Text == "Memory" then
  25. for i,v in pairs(game:GetService("CoreGui").RobloxGui.PerformanceStats["PS_Viewer"].Frame:GetChildren()) do
  26. if v.Name == "PS_DecoratedValueLabel" and string.find(v.Label.Text, 'Current') then
  27. v.Label.Text = "Current: " .. Memory .. " MB"
  28. end
  29. if v.Name == "PS_DecoratedValueLabel" and string.find(v.Label.Text, 'Average') then
  30. v.Label.Text = "Average: " .. Memory .. " MB"
  31. end
  32. end
  33. end
  34. end)
  35. pcall(function()
  36. game:GetService("CoreGui").DevConsoleMaster.DevConsoleWindow.DevConsoleUI.TopBar.LiveStatsModule["MemoryUsage_MB"].Text = math.round(tonumber(newmem)) .. " MB"
  37. end)
  38. end)
  39.  
  40. for _,v in pairs(getconnections(game:GetService("ScriptContext").Error)) do
  41. v:Disable()
  42. end
  43. for _,v in pairs(getconnections(game:GetService("LogService").MessageOut)) do
  44. v:Disable()
  45. end
  46.  
  47. local Settings = {
  48. Silent = {
  49. Enabled = true,
  50. UsePrediction = true,
  51. Prediction = 0.1142154,
  52. ShowFOV = true,
  53. showdot = true,
  54. SelectClosestPart = true,
  55. GunMode = true,
  56. Resolver = true,
  57. },
  58. FOVSettings = {
  59. FOV = 500,
  60. FOVSides = 300,
  61. FOVColour = Color3.fromRGB(0, 0, 0),
  62. FOVFilled = false
  63. },
  64. Lock = {
  65. Enabled = false,
  66. Prediction = 0.13,
  67. Target_Bind = Enum.KeyCode.Q,
  68. HitPart = "Nearest",
  69. Sensitivity = {
  70. X_Axis = {
  71. Saved = 0.09
  72. },
  73. Y_Axis = {
  74. Saved = 0.09
  75. }
  76. }
  77. },
  78. FakeSpike = {
  79. Status = false,
  80. Keybind = Enum.KeyCode.K,
  81. ReplicationLag = 1
  82. },
  83. HitChance = 100,
  84. Selected = nil,
  85. SelectedPart = nil,
  86. TargetPart = {"Head", "HumanoidRootPart"},
  87. }
  88.  
  89. local GunSettings = {
  90. ["Double-Barrel SG"] = { --// dh
  91. ["FOV"] = 20
  92. },
  93. ["Double Barrel SG"] = { --// dhm
  94. ["FOV"] = 20
  95. },
  96. ["DoubleBarrel"] = { --// hood customs
  97. ["FOV"] = 20
  98. },
  99. ["Revolver"] = {
  100. ["FOV"] = 15
  101. },
  102. ["SMG"] = {
  103. ["FOV"] = 10
  104. },
  105. ["Shotgun"] = {
  106. ["FOV"] = 20
  107. }
  108. }
  109.  
  110. local SupportedGames = {
  111. [1958807588] = {
  112. Name = "Da Hood Modded",
  113. MouseArguments = "MousePos",
  114. Functions = {
  115. GetKOValue = function(player)
  116. return player.Character["I_LOADED_I"]["K.O"].Value
  117. end
  118. },
  119. },
  120. [1008451066] = {
  121. Name = "Da Hood",
  122. MouseArguments = "UpdateMousePos",
  123. Functions = {
  124. GetKOValue = function(player)
  125. return player.Character.BodyEffects["K.O"].Value
  126. end
  127. },
  128. },
  129. [1590803567] = {
  130. Name = "The Hood",
  131. MouseArguments = "MousePosDEBUG",
  132. Functions = {
  133. GetKOValue = function(player)
  134. return player.BodyEffects["knocked"].Value
  135. end
  136. },
  137. },
  138. [3445639790] = {
  139. Name = "Untitled Hood",
  140. MouseArguments = "UpdateMousePos",
  141. Functions = {
  142. GetKOValue = function(player)
  143. return player.BodyEffects["K.O"].Value
  144. end
  145. },
  146. },
  147. [3682454970] = {
  148. Name = "n the hood",
  149. MouseArguments = "UpdateMousePos",
  150. Functions = {
  151. GetKOValue = function(player)
  152. return false
  153. end
  154. },
  155. },
  156. [3634139746] = {
  157. Name = "Hood Customs",
  158. MouseArguments = "GetMousePos",
  159. Functions = {
  160. GetKOValue = function(player)
  161. return false
  162. end
  163. },
  164. }
  165.  
  166. }
  167. getgenv().Settings = Settings
  168.  
  169. local Mouse = game.Players.LocalPlayer:GetMouse()
  170. local GuiService = game:GetService("GuiService")
  171. local GetGuiInset = GuiService.GetGuiInset
  172. local Players = game:GetService("Players")
  173. local Workspace = game:GetService("Workspace")
  174. local GuiService = game:GetService("GuiService")
  175. local RunService = game:GetService("RunService")
  176. local LocalPlayer = Players.LocalPlayer
  177. local cc = Workspace.CurrentCamera
  178. local SelectedPart
  179. local CanLock = false
  180. local LocalPlayer = Players.LocalPlayer
  181. local player = Players.LocalPlayer
  182. local CurrentCamera = Workspace.CurrentCamera
  183. local Camera = Workspace.CurrentCamera
  184. local GetGuiInset = GuiService.GetGuiInset
  185. local CharacterAdded = LocalPlayer.CharacterAdded
  186. local CharacterAddedWait = CharacterAdded.Wait
  187. local WorldToViewportPoint = CurrentCamera.WorldToViewportPoint
  188. local RaycastParamsnew = RaycastParams.new
  189. local EnumRaycastFilterTypeBlacklist = Enum.RaycastFilterType.Blacklist
  190. local Raycast = Workspace.Raycast
  191. local GetPlayers = Players.GetPlayers
  192. local Instancenew = Instance.new
  193. local IsDescendantOf = Instancenew("Part").IsDescendantOf
  194. local FindFirstChildWhichIsA = Instancenew("Part").FindFirstChildWhichIsA
  195. local FindFirstChild = Instancenew("Part").FindFirstChild
  196. local Y = -0
  197.  
  198. local ScriptInformation = {
  199. Selected = nil,
  200. }
  201.  
  202. local Script = {Functions = {}}
  203.  
  204. local circle = Drawing.new("Circle")
  205. circle.Transparency = 1
  206. circle.Thickness = 2
  207. circle.Color = Settings.FOVSettings.FOVColour
  208. circle.Filled = false
  209. local FOVCircle = circle
  210.  
  211. local Tracer = Drawing.new("Circle")
  212. Tracer.Visible = false
  213. Tracer.Radius = 7
  214. Tracer.Filled = true
  215. Tracer.Color = Color3.fromRGB(255, 0, 212)
  216. Tracer.Thickness = 1
  217. Tracer.Transparency = 1
  218.  
  219. local function IsOnScreen(Object)
  220. local IsOnScreen = game.Workspace.CurrentCamera:WorldToScreenPoint(Object.Position)
  221. return IsOnScreen
  222. end
  223.  
  224. local function Filter(Object)
  225. if string.find(Object.Name, "Gun") then
  226. return
  227. end
  228. if Object:IsA("Part") or Object:IsA("MeshPart") then
  229. return true
  230. end
  231. end
  232.  
  233. local function WTSPos(Position)
  234. local ObjectVector = game.Workspace.CurrentCamera:WorldToScreenPoint(Position)
  235. return Vector2.new(ObjectVector.X, ObjectVector.Y)
  236. end
  237.  
  238. local function WTS(Object)
  239. local ObjectVector = game.Workspace.CurrentCamera:WorldToScreenPoint(Object.Position)
  240. return Vector2.new(ObjectVector.X, ObjectVector.Y)
  241. end
  242.  
  243. Script.Functions.CheckPlayer = function(player)
  244. if (player.Character) and player.Character:FindFirstChildWhichIsA("Humanoid") and player.Character:FindFirstChild("HumanoidRootPart") then
  245. return true
  246. end
  247. return false
  248. end
  249.  
  250. Script.Functions.IsVisible = function(Position, Ignore)
  251. return #workspace.CurrentCamera:GetPartsObscuringTarget({game.Players.LocalPlayer.Character.Head.Position, Position}, Ignore) == 0 and true or false
  252. end
  253.  
  254. Script.Functions.UpdateFOV = function()
  255. if CurrentGame ~= 0 then
  256. if not (circle) then
  257. return
  258. end
  259. circle.Visible = Settings.Silent.ShowFOV
  260. circle.Radius = (Settings.FOVSettings.FOV * 3)
  261. circle.Position = Vector2.new(Mouse.X, Mouse.Y + GetGuiInset(GuiService).Y)
  262. circle.NumSides = Settings.FOVSettings.FOVSides
  263. circle.Color = Settings.FOVSettings.FOVColour
  264. return circle
  265. end
  266. end
  267.  
  268. Script.Functions.CalcChance = function(percentage)
  269. percentage = math.floor(percentage)
  270. local chance = math.floor(Random.new().NextNumber(Random.new(), 0, 1) * 100) / 100
  271. return chance <= percentage / 100
  272. end
  273.  
  274. Script.Functions.Character = function(Player)
  275. return Player.Character
  276. end
  277.  
  278. Script.Functions.CheckHealth = function(Player)
  279. local Character = Script.Functions.Character(Player)
  280. local Humanoid = FindFirstChildWhichIsA(Character, "Humanoid")
  281. local Health = (Humanoid and Humanoid.Health or 0)
  282. return Health > 0
  283. end
  284.  
  285. Script.Functions.GetClosestTargetPartToCursor = function(Character)
  286. local TargetParts = Settings.TargetPart
  287. local ClosestPart = nil
  288. local ClosestPartPosition = nil
  289. local ClosestPartOnScreen = false
  290. local ClosestPartMagnitudeFromMouse = nil
  291. local ShortestDistance = 1/0
  292.  
  293. local function CheckTargetPart(TargetPart)
  294. if (typeof(TargetPart) == "string") then
  295. TargetPart = FindFirstChild(Character, TargetPart)
  296. end
  297. if not (TargetPart) then
  298. return
  299. end
  300. local PartPos, onScreen = WorldToViewportPoint(CurrentCamera, TargetPart.Position)
  301. local GuiInset = GetGuiInset(GuiService)
  302. local Magnitude = (Vector2.new(PartPos.X, PartPos.Y - GuiInset.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  303. if (Magnitude < ShortestDistance) then
  304. ClosestPart = TargetPart
  305. ClosestPartPosition = PartPos
  306. ClosestPartOnScreen = onScreen
  307. ClosestPartMagnitudeFromMouse = Magnitude
  308. ShortestDistance = Magnitude
  309. end
  310. end
  311. if (typeof(TargetParts) == "string") then
  312. if (TargetParts == "All") then
  313. for _, v in ipairs(Character:GetChildren()) do
  314. if not (v:IsA("BasePart")) then
  315. continue
  316. end
  317. CheckTargetPart(v)
  318. end
  319. else
  320. CheckTargetPart(TargetParts)
  321. end
  322. end
  323. if (typeof(TargetParts) == "table") then
  324. for _, TargetPartName in ipairs(TargetParts) do
  325. CheckTargetPart(TargetPartName)
  326. end
  327. end
  328. return ClosestPart, ClosestPartPosition, ClosestPartOnScreen, ClosestPartMagnitudeFromMouse
  329. end
  330.  
  331. Script.Functions.GetClosestPlayer = function()
  332. local TargetPart = nil
  333. local ClosestPlayer = nil
  334. local Chance = Script.Functions.CalcChance(Settings.HitChance)
  335. local ShortestDistance = 1/0
  336. if (not Chance) then
  337. Settings.Selected = LocalPlayer
  338. Settings.SelectedPart = nil
  339. return LocalPlayer
  340. end
  341. for _, Player in ipairs(GetPlayers(Players)) do
  342. local Character = Script.Functions.Character(Player)
  343. if (Character) then
  344. local TargetPartTemp, _, _, Magnitude = Script.Functions.GetClosestTargetPartToCursor(Character)
  345. if (TargetPartTemp and Script.Functions.CheckHealth(Player)) then
  346. if (circle.Radius > Magnitude and Magnitude < ShortestDistance) then
  347. if Script.Functions.IsVisible(Player.Character.Head.Position, {Player.Character, game.Players.LocalPlayer.Character, workspace.CurrentCamera}) then
  348. ClosestPlayer = Player
  349. ShortestDistance = Magnitude
  350. TargetPart = TargetPartTemp
  351. end
  352. end
  353. end
  354. end
  355. end
  356.  
  357. Settings.Selected = ClosestPlayer
  358. Settings.SelectedPart = TargetPart
  359. end
  360.  
  361. Script.Functions.GetClosestPlayerMulitple = function()
  362. local Target = nil
  363. local Distance = math.huge
  364. local Mouse = game:GetService("Players").LocalPlayer:GetMouse()
  365.  
  366. for i, v in next, game:GetService("Players"):GetPlayers() do
  367. if v ~= game:GetService("Players").LocalPlayer and Script.Functions.CheckPlayer(game:GetService("Players").LocalPlayer) and Script.Functions.CheckPlayer(v) then
  368. local RootPosition, RootVisible = workspace.CurrentCamera:WorldToViewportPoint(v.Character.HumanoidRootPart.Position)
  369.  
  370. local MouseDis = (Vector2.new(RootPosition.X, RootPosition.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  371. if (circle.Radius * 2 > MouseDis and MouseDis < Distance) then
  372. if RootVisible and Distance > MouseDis then
  373. if Script.Functions.IsVisible(v.Character.Head.Position, {v.Character, game.Players.LocalPlayer.Character, workspace.CurrentCamera}) then
  374. Target = v
  375. Distance = MouseDis
  376. end
  377. end
  378. end
  379. end
  380. end
  381.  
  382. return Target
  383. end
  384.  
  385. Script.Functions.GetNearestPartToCursorOnCharacter = function(character)
  386. local ClosestDistance = math.huge
  387. local BodyPart = nil
  388.  
  389. if (character and character:GetChildren()) then
  390. for k, x in next, character:GetChildren() do
  391. if Filter(x) and IsOnScreen(x) then
  392. local Distance = (WTS(x) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  393.  
  394. if Distance < ClosestDistance then
  395. ClosestDistance = Distance
  396. BodyPart = x
  397. end
  398. end
  399. end
  400. end
  401.  
  402. return BodyPart
  403. end
  404.  
  405. game:GetService("UserInputService").InputBegan:Connect(function(input, processed)
  406. if input.KeyCode == Settings.Lock.Target_Bind and not processed then
  407. if ScriptInformation.Selected ~= nil then
  408. ScriptInformation.Selected = nil
  409. else
  410. ScriptInformation.Selected = Script.Functions.GetClosestPlayerMulitple()
  411. end
  412. end
  413. end)
  414.  
  415. game:GetService("UserInputService").InputBegan:Connect(function(input, processed)
  416. if input.KeyCode == Settings.FakeSpike.Keybind and not processed then
  417. Settings.FakeSpike.Status = not Settings.FakeSpike.Status
  418. settings().Network.IncomingReplicationLag = Settings.FakeSpike.Status == true and Settings.FakeSpike.ReplicationLag or 0
  419. end
  420. end)
  421.  
  422. Script.Functions.Aim = function(Part)
  423. local hit = Part:GetRenderCFrame().Position + (Part.Velocity * Settings.Lock.Prediction)
  424. local newpos = workspace.CurrentCamera.WorldToScreenPoint(workspace.CurrentCamera, hit)
  425.  
  426. if ScriptInformation.Selected ~= nil and Script.Functions.IsVisible(ScriptInformation.Selected.Character.Head.Position, {ScriptInformation.Selected.Character, game.Players.LocalPlayer.Character, workspace.CurrentCamera}) then
  427. mousemoverel((newpos.X - Mouse.X) * Settings.Lock.Sensitivity.X_Axis.Saved, (newpos.Y - Mouse.Y) * Settings.Lock.Sensitivity.Y_Axis.Saved)
  428. end
  429. end
  430.  
  431. local CurrentGame = 0
  432.  
  433. if SupportedGames[game.GameId] then
  434. CurrentGame = SupportedGames[game.GameId]
  435. else
  436. return;
  437. end
  438.  
  439. Script.Functions.IsDowned = function(player)
  440. if CurrentGame == 0 then
  441. return false
  442. end
  443.  
  444. if (player.Character) and CurrentGame ~= 0 then
  445. return CurrentGame.Functions.GetKOValue(player)
  446. end
  447.  
  448. return true
  449. end
  450.  
  451. Script.Functions.CheckSilent = function()
  452. if CurrentGame == 0 then
  453. return false
  454. end
  455. if CurrentGame ~= 0 then
  456. return (Settings.Silent.Enabled and Settings.Selected ~= nil and (Settings.Selected.Character) and Settings.Selected ~= game.Players.LocalPlayer and not Script.Functions.IsDowned(Settings.Selected) and SelectedPart ~= nil)
  457. end
  458. return true
  459. end
  460.  
  461. Script.Functions.getToolName = function(name)
  462. local split = string.split(string.split(name, "[")[2], "]")[1]
  463. return split
  464. end
  465.  
  466. Script.Functions.getEquippedWeaponName = function(player)
  467. if (player.Character) and player.Character:FindFirstChildWhichIsA("Tool") then
  468. local Tool = player.Character:FindFirstChildWhichIsA("Tool")
  469. 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
  470. return Script.Functions.getToolName(Tool.Name)
  471. end
  472. end
  473. return nil
  474. end
  475.  
  476. task.spawn(function()
  477. while task.wait() do
  478. if Settings.Silent.SelectClosestPart and Settings.Selected ~= nil and (Settings.Selected.Character) then
  479. SelectedPart = tostring(Script.Functions.GetNearestPartToCursorOnCharacter(Settings.Selected.Character))
  480. end
  481. end
  482. end)
  483.  
  484. game:GetService("RunService").RenderStepped:Connect(function()
  485. Script.Functions.UpdateFOV()
  486. Script.Functions.GetClosestPlayer()
  487.  
  488. if Script.Functions.getEquippedWeaponName(game.Players.LocalPlayer) ~= nil and CurrentGame ~= 0 and Settings.Silent.GunMode then
  489. local WeaponSettings = GunSettings[Script.Functions.getEquippedWeaponName(game.Players.LocalPlayer)]
  490. if WeaponSettings ~= nil then
  491. Settings.FOVSettings.FOV = WeaponSettings.FOV
  492. else
  493. Settings.FOVSettings.FOV = Settings.FOVSettings.FOV
  494. end
  495. end
  496.  
  497. if Settings.Lock.Enabled and ScriptInformation.Selected ~= nil and (ScriptInformation.Selected.Character) and not Script.Functions.IsDowned(ScriptInformation.Selected) then
  498. local HitPart = Script.Functions.GetNearestPartToCursorOnCharacter(ScriptInformation.Selected.Character)
  499. Script.Functions.Aim(HitPart)
  500. end
  501.  
  502. if Settings.Silent.showdot and Settings.Silent.Enabled and Settings.Selected ~= nil and Settings.Selected ~= game.Players.LocalPlayer and (Settings.Selected.Character) then
  503. local Vector, OnScreen = cc:worldToViewportPoint(Settings.Selected.Character[SelectedPart].Position + (Settings.Selected.Character[SelectedPart].Velocity * Settings.Silent.Prediction))
  504. Tracer.Visible = true
  505. Tracer.Position = Vector2.new(Vector.X, Vector.Y)
  506. else
  507. Tracer.Visible = false
  508. end
  509.  
  510. end)
  511.  
  512. local oldNamecall
  513. oldNamecall = hookmetamethod(game, "__namecall", function(...)
  514. local args = {...};
  515. local method = getnamecallmethod();
  516. if method == "FireServer" and args[2] == CurrentGame.MouseArguments and Script.Functions.CheckSilent() then
  517. if Settings.Silent.UsePrediction then
  518. if Settings.Silent.Resolver and Script.Functions.CheckSilent() then
  519. old_vel = game.Players[Settings.Selected.Name].Character.HumanoidRootPart.Velocity
  520. game.Players[Settings.Selected.Name].Character.HumanoidRootPart.Velocity = Vector3.new(old_vel.X, Y, old_vel.Z)
  521. end
  522. args[3] = Settings.Selected.Character[SelectedPart].Position + (Settings.Selected.Character[SelectedPart].Velocity * Settings.Silent.Prediction)
  523. else
  524. if Settings.Silent.Resolver and Script.Functions.CheckSilent() then
  525. old_vel = game.Players[Settings.Selected.Name].Character.HumanoidRootPart.Velocity
  526. game.Players[Settings.Selected.Name].Character.HumanoidRootPart.Velocity = Vector3.new(old_vel.X, Y, old_vel.Z)
  527. end
  528. args[3] = Settings.Selected.Character[SelectedPart].Position
  529. end
  530. return oldNamecall(unpack(args))
  531. end
  532. return oldNamecall(...)
  533. end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement