SpirituallyHot

project delta

Oct 30th, 2022
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.89 KB | None | 0 0
  1. local executedTimer = tick()
  2.  
  3. repeat task.wait() until game:IsLoaded()
  4.  
  5. --[Main Variables]
  6. local plrs = game["Players"]
  7. local ws = game["Workspace"]
  8. local uis = game["UserInputService"]
  9. local rs = game["RunService"]
  10. local hs = game["HttpService"]
  11. local cgui = game["CoreGui"]
  12. local lighting = game["Lighting"]
  13. local GuiService = game["GuiService"]
  14. local repStorage = game["ReplicatedStorage"]
  15.  
  16. local plr = plrs.LocalPlayer
  17. local mouse = plr:GetMouse()
  18. local camera = ws.CurrentCamera
  19. local worldToViewportPoint = camera.worldToViewportPoint
  20.  
  21. local Drawingnew = Drawing.new
  22. local Color3new = Color3.new
  23. local Color3fromRGB = Color3.fromRGB
  24. local Vector3new = Vector3.new
  25. local Vector2new = Vector2.new
  26. local mathhuge = math.huge
  27. local mathfloor = math.floor
  28. local mathceil = math.ceil
  29. local GetGuiInset = GuiService.GetGuiInset
  30. local Raynew = Ray.new
  31.  
  32. --[Setup Table]
  33.  
  34. local esp = {
  35. players = {},
  36. objects = {},
  37. otherObjects = {},
  38. enabled = false,
  39. teamcheck = false,
  40. fontsize = 13,
  41. font = 1,
  42. settings = {
  43. name = {enabled = false, outline = false, displaynames = false, color = Color3.fromRGB(255, 255, 255)},
  44. box = {enabled = false, outline = false, color = Color3.fromRGB(255, 255, 255)},
  45. healthbar = {enabled = false, outline = false},
  46. healthtext = {enabled = false, outline = false, color = Color3.fromRGB(255, 255, 255)},
  47. distance = {enabled = false, outline = false, color = Color3.fromRGB(255, 255, 255)},
  48. viewangle = {enabled = false, color = Color3.fromRGB(255, 255, 255)},
  49. }
  50. }
  51.  
  52. local Old_Ammo = {
  53. ["762x54SAP"] = {
  54. ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["762x54AP"]:GetAttribute("ProjectileDrop")
  55. },
  56. ["9x18AP"] = {
  57. ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["9x18AP"]:GetAttribute("ProjectileDrop")
  58. },
  59. ["762x39AP"] = {
  60. ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["762x39AP"]:GetAttribute("ProjectileDrop")
  61. },
  62. ["9x18Z"] = {
  63. ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["9x18Z"]:GetAttribute("ProjectileDrop")
  64. },
  65. ["762x25Tracer"] = {
  66. ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["762x25Tracer"]:GetAttribute("ProjectileDrop")
  67. },
  68. ["556x45Tracer"] = {
  69. ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["556x45Tracer"]:GetAttribute("ProjectileDrop")
  70. },
  71. ["762x25AP"] = {
  72. ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["762x25AP"]:GetAttribute("ProjectileDrop")
  73. },
  74. ["762x39Tracer"] = {
  75. ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["762x39Tracer"]:GetAttribute("ProjectileDrop")
  76. },
  77. ["762x54Tracer"] = {
  78. ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["762x54Tracer"]:GetAttribute("ProjectileDrop")
  79. },
  80. ["9x19Tracer"] = {
  81. ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["9x19Tracer"]:GetAttribute("ProjectileDrop")
  82. },
  83. ["9x18Tracer"] = {
  84. ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["9x18Tracer"]:GetAttribute("ProjectileDrop")
  85. },
  86. ["9x19AP"] = {
  87. ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["9x19AP"]:GetAttribute("ProjectileDrop")
  88. },
  89. ["556x45AP"] = {
  90. ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["556x45AP"]:GetAttribute("ProjectileDrop")
  91. }
  92. }
  93.  
  94. --[Load UI]
  95.  
  96. loadstring(game:HttpGet("https://raw.githubusercontent.com/DemoExists/Oblivious/main/universal.lua", true))()
  97.  
  98. local VisualsTab = library:AddTab("Visuals", 1)
  99. local AimTab = library:AddTab("Combat", 2)
  100. local PlayerTab = library:AddTab("Player", 3)
  101.  
  102. local ESPColumn = VisualsTab:AddColumn()
  103.  
  104. local ESPSection = ESPColumn:AddSection("ESP")
  105.  
  106. local SnaplineSection = ESPColumn:AddSection("Snapline")
  107.  
  108.  
  109. local LightColumn = VisualsTab:AddColumn()
  110.  
  111. local FOVSection = LightColumn:AddSection("FOV Circle")
  112.  
  113. local CrossSection = LightColumn:AddSection("Crosshair")
  114.  
  115. local LightSection = LightColumn:AddSection("Lighting")
  116.  
  117.  
  118. local CharColumn = PlayerTab:AddColumn()
  119.  
  120. local CharSection = CharColumn:AddSection("Character Modifications")
  121.  
  122.  
  123. local AimColumn = AimTab:AddColumn()
  124.  
  125. local Aim2Column = AimTab:AddColumn()
  126.  
  127. local AimSection = AimColumn:AddSection("Aim")
  128.  
  129. local ModsSection = AimColumn:AddSection("Gun Mods")
  130.  
  131. ESPSection:AddToggle({text = "Toggle", flag = "ESP_Toggle", state = false, callback = function(bool)
  132. esp.enabled = bool
  133. end})
  134.  
  135. ESPSection:AddToggle({text = "Name", flag = "ESP_NameToggle", state = false, callback = function(bool)
  136. esp.settings.name.enabled = bool
  137. end}):AddColor({flag = "ESP_NameColor", color = Color3fromRGB(255, 255, 255), callback = function(color)
  138. esp.settings.name.color = color
  139. end})
  140.  
  141. ESPSection:AddToggle({text = "Box", flag = "ESP_BoxToggle", state = false, callback = function(bool)
  142. esp.settings.box.enabled = bool
  143. end}):AddColor({flag = "ESP_BoxColor", color = Color3fromRGB(255, 255, 255), callback = function(color)
  144. esp.settings.box.color = color
  145. end})
  146.  
  147. ESPSection:AddToggle({text = "Health Bar", flag = "ESP_HealthBarToggle", state = false, callback = function(bool)
  148. esp.settings.healthbar.enabled = bool
  149. end})
  150.  
  151. ESPSection:AddToggle({text = "Health Text", flag = "ESP_HealthTextToggle", state = false, callback = function(bool)
  152. esp.settings.healthtext.enabled = bool
  153. end}):AddColor({flag = "ESP_HealthTextColor", color = Color3fromRGB(255, 255, 255), callback = function(color)
  154. esp.settings.healthtext.color = color
  155. end})
  156.  
  157. ESPSection:AddToggle({text = "Distance", flag = "ESP_DistanceToggle", state = false, callback = function(bool)
  158. esp.settings.distance.enabled = bool
  159. end}):AddColor({flag = "ESP_DistanceColor", color = Color3fromRGB(255, 255, 255), callback = function(color)
  160. esp.settings.distance.color = color
  161. end})
  162.  
  163. ESPSection:AddToggle({text = "View Angle", flag = "ESP_ViewAngleToggle", state = false, callback = function(bool)
  164. esp.settings.viewangle.enabled = bool
  165. end}):AddColor({flag = "ESP_ViewAngleColor", color = Color3fromRGB(255, 255, 255), callback = function(color)
  166. esp.settings.viewangle.color = color
  167. end})
  168.  
  169. ESPSection:AddDivider("Settings")
  170.  
  171. ESPSection:AddToggle({text = "Display Names", flag = "ESP_TeamCheck", state = false, callback = function(bool)
  172. esp.settings.name.displaynames = bool
  173. end})
  174.  
  175. ESPSection:AddToggle({text = "Outlines", flag = "ESP_Outlines", state = false, callback = function(bool)
  176. for i,v in pairs(esp.settings) do
  177. v.outline = bool
  178. end
  179. end})
  180.  
  181. ESPSection:AddToggle({text = "Team Check", flag = "ESP_TeamCheck", state = false, callback = function(bool)
  182. esp.teamcheck = bool
  183. end})
  184.  
  185. ESPSection:AddSlider({text = "Font Size", flag = "ESP_FontSize", min = 0, max = 100, value = 13, callback = function(integer)
  186. esp.fontsize = integer
  187. end})
  188.  
  189. ESPSection:AddList({text = "Font", flag = "ESP_Font", max = 4, values = {"UI", "System", "Plex", "Monospace"}, value = "Plex", callback = function(item)
  190. if item == "UI" then
  191. esp.font = 0
  192. elseif item == "System" then
  193. esp.font = 1
  194. elseif item == "Plex" then
  195. esp.font = 2
  196. elseif item == "Monospace" then
  197. esp.font = 3
  198. end
  199. end})
  200.  
  201.  
  202.  
  203. --[DRAW SNAP LINE]
  204.  
  205. local Snapline_Line = Drawingnew("Line")
  206. Snapline_Line.Visible = true
  207. Snapline_Line.Thickness = 1
  208. Snapline_Line.Transparency = 1
  209. Snapline_Line.From = Vector2new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2)
  210. Snapline_Line.To = Vector2new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2)
  211. Snapline_Line.Color = Color3fromRGB(255, 255, 255)
  212.  
  213. function Snapline_Closest()
  214. local target = nil
  215. local maxDist = mathhuge
  216.  
  217. for _,v in ipairs(plrs:GetPlayers()) do
  218. if v ~= plr and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Head") then
  219. local pos, onScreen = camera:WorldToViewportPoint(v.Character[library.flags["Aim_TargetPart"]].Position)
  220. if onScreen then
  221. local dist = (Vector2new(pos.X, pos.Y - GetGuiInset(GuiService).Y) - Vector2new(mouse.X, mouse.Y)).Magnitude
  222. if dist <= maxDist then
  223. maxDist = dist
  224. target = v
  225. end
  226. end
  227. end
  228. end
  229. return target
  230. end
  231.  
  232. SnaplineSection:AddToggle({text = "Toggle", flag = "Snapline_Toggle", state = false, callback = function(bool)
  233. Snapline_Line.Visible = bool
  234. end}):AddColor({flag = "Snapline_Color", color = Color3fromRGB(255, 255, 255), callback = function(color)
  235. Snapline_Line.Color = color
  236. end})
  237.  
  238. SnaplineSection:AddSlider({text = "Thickness", flag = "Snapline_Thickness", min = 0.5, max = 5, value = 1, float = 0.1, callback = function(integer)
  239. Snapline_Line.Thickness = integer
  240. end})
  241.  
  242. SnaplineSection:AddSlider({text = "Transparency", flag = "Snapline_Transparency", min = 0, max = 1, value = 1, float = 0.1, callback = function(integer)
  243. Snapline_Line.Transparency = integer
  244. end})
  245.  
  246. SnaplineSection:AddList({text = "Snap Part", flag = "Snapline_TargetPart", max = 2, values = {"Head", "HumanoidRootPart"}, value = "Head"})
  247.  
  248.  
  249.  
  250. --[DRAW FOV CIRCLE]
  251.  
  252. local FOVCircle_Circle = Drawingnew("Circle")
  253. FOVCircle_Circle.Visible = false
  254. FOVCircle_Circle.Color = Color3fromRGB(255, 255, 255)
  255. FOVCircle_Circle.Radius = 100
  256. FOVCircle_Circle.Thickness = 1
  257. FOVCircle_Circle.Filled = false
  258. FOVCircle_Circle.Transparency = 1
  259. FOVCircle_Circle.Position = Vector2new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2)
  260.  
  261. FOVSection:AddToggle({text = "FOV Circle", flag = "FOVCircle_Toggle", state = false, callback = function(bool)
  262. FOVCircle_Circle.Visible = bool
  263. end}):AddColor({flag = "FOVCircle_Color", color = Color3fromRGB(255, 255, 255), callback = function(color)
  264. FOVCircle_Circle.Color = color
  265. end})
  266.  
  267. FOVSection:AddDivider("Settings")
  268.  
  269. FOVSection:AddToggle({text = "Filled", flag = "FOVCircle_Filled", state = false, callback = function(bool)
  270. FOVCircle_Circle.Filled = bool
  271. end})
  272.  
  273. FOVSection:AddSlider({text = "Radius", flag = "FOVCircle_Radius", min = 0, max = 750, value = 100, callback = function(integer)
  274. FOVCircle_Circle.Radius = integer
  275. end})
  276.  
  277. FOVSection:AddSlider({text = "Thickness", flag = "FOVCircle_Thickness", min = 0.5, max = 5, value = 1, float = 0.1, callback = function(integer)
  278. FOVCircle_Circle.Thickness = integer
  279. end})
  280.  
  281. FOVSection:AddSlider({text = "Transparency", flag = "FOVCircle_Transparency", min = 0, max = 1, value = 1, float = 0.1, callback = function(integer)
  282. FOVCircle_Circle.Transparency = integer
  283. end})
  284.  
  285. FOVSection:AddSlider({text = "Num Sides", flag = "FOVCircle_NumSides", min = 0, max = 30, value = 0, callback = function(integer)
  286. FOVCircle_Circle.NumSides = integer
  287. end})
  288.  
  289.  
  290.  
  291. --[DRAW CROSSHAIR]
  292.  
  293. local Crosshair_Horizontal = Drawingnew("Line")
  294. Crosshair_Horizontal.Visible = false
  295. Crosshair_Horizontal.Thickness = 1
  296. Crosshair_Horizontal.Transparency = 1
  297. Crosshair_Horizontal.From = Vector2new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2)
  298. Crosshair_Horizontal.To = Vector2new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2)
  299. Crosshair_Horizontal.Color = Color3fromRGB(255, 255, 255)
  300.  
  301. local Crosshair_Vertical = Drawingnew("Line")
  302. Crosshair_Vertical.Visible = false
  303. Crosshair_Vertical.Thickness = 1
  304. Crosshair_Vertical.Transparency = 1
  305. Crosshair_Vertical.From = Vector2new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2)
  306. Crosshair_Vertical.To = Vector2new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2)
  307. Crosshair_Vertical.Color = Color3fromRGB(255, 255, 255)
  308.  
  309. CrossSection:AddToggle({text = "Crosshair", flag = "Crosshair_Toggle", state = false, callback = function(bool)
  310. Crosshair_Horizontal.Visible = bool
  311. Crosshair_Vertical.Visible = bool
  312. end}):AddColor({flag = "Crosshair_Color", color = Color3fromRGB(255, 255, 255), callback = function(color)
  313. Crosshair_Horizontal.Color = color
  314. Crosshair_Vertical.Color = color
  315. end})
  316.  
  317. CrossSection:AddDivider("Settings")
  318.  
  319. CrossSection:AddSlider({text = "Size", flag = "Crosshair_Size", min = 0, max = 250, value = 10, callback = function(integer)
  320. Crosshair_Horizontal.From = Vector2new(camera.ViewportSize.X / 2 - integer, camera.ViewportSize.Y / 2)
  321. Crosshair_Horizontal.To = Vector2new(camera.ViewportSize.X / 2 + integer, camera.ViewportSize.Y / 2)
  322. Crosshair_Vertical.From = Vector2new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2 - integer)
  323. Crosshair_Vertical.To = Vector2new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2 + integer)
  324. end})
  325.  
  326. CrossSection:AddSlider({text = "Thickness", flag = "Crosshair_Thickness", min = 0.5, max = 5, value = 1, float = 0.1, callback = function(integer)
  327. Crosshair_Horizontal.Thickness = integer
  328. Crosshair_Vertical.Thickness = integer
  329. end})
  330.  
  331. CrossSection:AddSlider({text = "Transparency", flag = "Crosshair_Transparency", min = 0, max = 1, value = 1, float = 0.1, callback = function(integer)
  332. Crosshair_Horizontal.Transparency = integer
  333. Crosshair_Vertical.Transparency = integer
  334. end})
  335.  
  336.  
  337.  
  338. LightSection:AddToggle({text = "Custom Ambient", flag = "Light_AmbientToggle", state = false, callback = function(bool)
  339. if bool == true then
  340. lighting.Ambient = library.flags["Light_AmbientColor"]
  341. elseif bool == false then
  342. lighting.Ambient = Color3fromRGB(70, 70, 70)
  343. end
  344. end}):AddColor({flag = "Light_AmbientColor", color = Color3fromRGB(255, 255, 255), callback = function(color)
  345. if library.flags["Light_AmbientToggle"] then
  346. lighting.Ambient = library.flags["Light_AmbientColor"]
  347. end
  348. end})
  349.  
  350. LightSection:AddToggle({text = "Global Shadows", flag = "Light_Shadows", state = true, callback = function(bool)
  351. lighting.GlobalShadows = bool
  352. end})
  353.  
  354. LightSection:AddToggle({text = "Clouds", flag = "Light_Clouds", state = true, callback = function(bool)
  355. ws.Terrain.Clouds.Enabled = bool
  356. end})
  357.  
  358. LightSection:AddToggle({text = "World Grass", flag = "Light_Grass", state = true, callback = function(bool)
  359. sethiddenproperty(ws.Terrain, "Decoration", bool)
  360. end})
  361.  
  362. LightSection:AddToggle({text = "Atmosphere", flag = "Light_Atmosphere", state = true, callback = function(bool)
  363. if not bool then
  364. lighting.Atmosphere.Density = 0
  365. else
  366. lighting.Atmosphere.Density = 0.31999999284744
  367. end
  368. end})
  369.  
  370. LightSection:AddToggle({text = "Force Time", flag = "Light_ForceTime", state = false}):AddSlider({flag = "Light_Time", float = 0.1, min = 0, max = 24, value = 12})
  371.  
  372.  
  373.  
  374. AimSection:AddToggle({text = "Toggle", flag = "Aim_BotToggle", state = false}):AddBind({nomouse = false, key = "MouseButton2", mode = "toggle", flag = "Aim_KeyDown"})
  375.  
  376. AimSection:AddToggle({text = "Silent", flag = "Aim_SilentToggle", state = false}):AddSlider({flag = "Aim_SilentPrediction", float = 0.1, min = 0.1, max = 20, value = 8})
  377.  
  378. AimSection:AddDivider("Settings")
  379.  
  380. AimSection:AddToggle({text = "Team Check", flag = "Aim_TeamCheck", state = false})
  381.  
  382. AimSection:AddList({text = "Target Part", flag = "Aim_TargetPart", max = 2, values = {"Head", "HumanoidRootPart"}, value = "Head"})
  383.  
  384.  
  385.  
  386. ModsSection:AddToggle({text = "No Screen Bob", flag = "Mods_NoScreenBob", state = false})
  387.  
  388. local springModule = require(repStorage.Modules.spring)
  389. local oldSpringIndex
  390. oldSpringIndex = hookfunction(springModule.update, function(...)
  391. if library.flags["Mods_NoScreenBob"] then
  392. return;
  393. end
  394.  
  395. return oldSpringIndex(...)
  396. end)
  397.  
  398. function noRecoilToggle()
  399. local VFX = nil; for i,v in next, getgc(true) do
  400. if typeof(v) == "table" and rawget(v, "RecoilCamera") then
  401. VFX = v
  402. break
  403. end
  404. end
  405.  
  406. local RecoilCamera = VFX.RecoilCamera;
  407. VFX.RecoilCamera = function(...)
  408. if library.flags["Mods_NoRecoil"] then
  409. return 0
  410. else
  411. return RecoilCamera(...)
  412. end
  413. end
  414. end
  415.  
  416. ModsSection:AddToggle({text = "No Recoil", flag = "Mods_NoRecoil", state = false, callback = function(bool)
  417. noRecoilToggle()
  418. end})
  419.  
  420. ModsSection:AddToggle({text = "No Muzzle Flash", flag = "Mods_NoMuzzleFlash", state = false, callback = function(bool)
  421. for i,v in pairs(repStorage.RangedWeapons:GetChildren()) do
  422. v:SetAttribute("MuzzleEffect", not bool)
  423. end
  424. end})
  425.  
  426. ModsSection:AddToggle({text = "No Bullet Drop", state = false, callback = function(bool)
  427. for i,v in pairs(repStorage.AmmoTypes:GetChildren()) do
  428. if bool == true then
  429. v:SetAttribute("ProjectileDrop", 0)
  430. elseif bool == false then
  431. v:SetAttribute("ProjectileDrop", Old_Ammo[v.Name]["Drop"])
  432. end
  433. end
  434. end})
  435.  
  436.  
  437.  
  438. CharSection:AddToggle({text = "Toggle Speed", flag = "Player_SpeedToggle", state = false}):AddSlider({flag = "Player_SpeedValue", min = 0, max = 150, value = originalWs})
  439.  
  440. CharSection:AddToggle({text = "Toggle Jump", flag = "Player_JumpToggle", state = false}):AddSlider({flag = "Player_JumpValue", min = 0, max = 500, value = originalJp})
  441.  
  442. CharSection:AddToggle({text = "Toggle FOV", flag = "Player_FOVToggle", state = false, callback = function(bool)
  443. if bool == true then
  444. camera.FieldOfView = library.flags["Player_FOVValue"]
  445. elseif bool == false then
  446. camera.FieldOfView = 70.000004553459
  447. end
  448. end}):AddSlider({flag = "Player_FOVValue", min = 0, max = 120, value = 70, callback = function(integer)
  449. if library.flags["Player_FOVToggle"] then
  450. camera.FieldOfView = integer
  451. end
  452. end})
  453.  
  454. CharSection:AddToggle({text = "Infinite Jump", flag = "Player_InfJump", state = false})
  455.  
  456. mouse.KeyDown:connect(function(key)
  457. if library.flags["Player_InfJump"] and key == " " then
  458. plr.Character.Humanoid:ChangeState(3)
  459. wait()
  460. end
  461. end)
  462.  
  463. CharSection:AddDivider()
  464.  
  465. CharSection:AddToggle({text = "Disable Drowning", flag = "Player_NoDrown", state = false})
  466.  
  467. library:Init();
  468. library:selectTab(library.tabs[1]);
  469.  
  470. --[ESP Init]
  471.  
  472. function closestToMouse()
  473. local target = nil
  474. local maxDist = mathhuge
  475.  
  476. for _,v in ipairs(plrs:GetPlayers()) do
  477. if v ~= plr and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Head") then
  478. local pos, onScreen = camera:WorldToViewportPoint(v.Character[library.flags["Aim_TargetPart"]].Position)
  479. if onScreen then
  480. local dist = (Vector2new(pos.X, pos.Y - GetGuiInset(GuiService).Y) - Vector2new(mouse.X, mouse.Y)).Magnitude
  481. if dist <= maxDist then
  482. if library.flags["FOVCircle_Toggle"] then
  483. if library.flags["Aim_TeamCheck"] then
  484. if dist < library.flags["FOVCircle_Radius"] and plr.TeamColor ~= v.TeamColor then
  485. maxDist = dist
  486. target = v
  487. end
  488. else
  489. if dist < library.flags["FOVCircle_Radius"] then
  490. maxDist = dist
  491. target = v
  492. end
  493. end
  494. else
  495. if library.flags["Aim_TeamCheck"] then
  496. if dist <= maxDist and plr.TeamColor ~= v.TeamColor then
  497. maxDist = dist
  498. target = v
  499. end
  500. else
  501. if dist <= maxDist then
  502. maxDist = dist
  503. target = v
  504. end
  505. end
  506. end
  507. end
  508. end
  509. end
  510. end
  511. return target
  512. end
  513.  
  514. esp.NewDrawing = function(type, properties)
  515. local newD = Drawingnew(type)
  516. for i,v in next, properties or {} do
  517. local s,e = pcall(function()
  518. newD[i] = v
  519. end)
  520.  
  521. if not s then
  522. warn(e)
  523. end
  524. end
  525. return newD
  526. end
  527.  
  528. esp.HasCharacter = function(v)
  529. local pass = false
  530. if v.Character and v.Character:FindFirstChild("Humanoid") and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Head") then
  531. pass = true
  532. end
  533.  
  534. if s then return pass; end; return pass;
  535. end
  536.  
  537. esp.TeamCheck = function(v)
  538. local pass = true
  539. if plr.TeamColor == v.TeamColor then
  540. pass = false
  541. end
  542.  
  543. if s then return pass; end; return pass;
  544. end --[true = Same Team | false = Same Teama]
  545.  
  546. esp.NewPlayer = function(v)
  547. esp.players[v] = {
  548. name = esp.NewDrawing("Text", {Color = Color3fromRGB(255, 255, 255), Outline = true, Center = true, Size = 13, Font = 2}),
  549. boxOutline = esp.NewDrawing("Square", {Color = Color3fromRGB(0, 0, 0), Thickness = 3}),
  550. box = esp.NewDrawing("Square", {Color = Color3fromRGB(255, 255, 255), Thickness = 1}),
  551. healthBarOutline = esp.NewDrawing("Line", {Color = Color3fromRGB(0, 0, 0), Thickness = 3}),
  552. healthBar = esp.NewDrawing("Line", {Color = Color3fromRGB(255, 255, 255), Thickness = 1}),
  553. healthText = esp.NewDrawing("Text", {Color = Color3fromRGB(255, 255, 255), Outline = true, Center = true, Size = 13, Font = 2}),
  554. distance = esp.NewDrawing("Text", {Color = Color3fromRGB(255, 255, 255), Outline = true, Center = true, Size = 13, Font = 2}),
  555. viewAngle = esp.NewDrawing("Line", {Color = Color3fromRGB(255, 255, 255), Thickness = 1}),
  556. }
  557. end
  558.  
  559. for _,v in ipairs(plrs:GetPlayers()) do
  560. esp.NewPlayer(v)
  561. end
  562.  
  563. plrs.PlayerAdded:Connect(esp.NewPlayer)
  564.  
  565. --[Silent Aim Vars]
  566.  
  567. local Plr_Target
  568. local Plr_Target_Predicted
  569.  
  570. local mainLoop = game:GetService("RunService").RenderStepped:Connect(function()
  571. for i,v in pairs(esp.players) do
  572. if not esp.HasCharacter(i) then
  573. v.name.Visible = false
  574. v.boxOutline.Visible = false
  575. v.box.Visible = false
  576. end
  577.  
  578. if esp.HasCharacter(i) then
  579. local hum = i.Character.Humanoid
  580. local hrp = i.Character.HumanoidRootPart
  581. local head = i.Character.Head
  582.  
  583. local Vector, onScreen = camera:WorldToViewportPoint(i.Character.HumanoidRootPart.Position)
  584.  
  585. local Size = (camera:WorldToViewportPoint(hrp.Position - Vector3new(0, 3, 0)).Y - camera:WorldToViewportPoint(hrp.Position + Vector3new(0, 2.6, 0)).Y) / 2
  586. local BoxSize = Vector2new(mathfloor(Size * 1.5), mathfloor(Size * 1.9))
  587. local BoxPos = Vector2new(mathfloor(Vector.X - Size * 1.5 / 2), mathfloor(Vector.Y - Size * 1.6 / 2))
  588.  
  589. local BottomOffset = BoxSize.Y + BoxPos.Y + 1
  590.  
  591. if onScreen and esp.enabled then
  592. if esp.settings.name.enabled then
  593. v.name.Position = Vector2new(BoxSize.X / 2 + BoxPos.X, BoxPos.Y - 16)
  594. v.name.Outline = esp.settings.name.outline
  595. v.name.Color = esp.settings.name.color
  596.  
  597. v.name.Font = esp.font
  598. v.name.Size = esp.fontsize
  599.  
  600. if esp.settings.name.displaynames then
  601. v.name.Text = tostring(i.DisplayName)
  602. else
  603. v.name.Text = tostring(i.Name)
  604. end
  605.  
  606. v.name.Visible = true
  607. else
  608. v.name.Visible = false
  609. end
  610.  
  611. if esp.settings.distance.enabled and hrp and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
  612. v.distance.Position = Vector2new(BoxSize.X / 2 + BoxPos.X, BottomOffset)
  613. v.distance.Outline = esp.settings.distance.outline
  614. v.distance.Text = "[" .. mathfloor((hrp.Position - plr.Character.HumanoidRootPart.Position).Magnitude) .. "m]"
  615. v.distance.Color = esp.settings.distance.color
  616. BottomOffset = BottomOffset + 15
  617.  
  618. v.distance.Font = esp.font
  619. v.distance.Size = esp.fontsize
  620.  
  621. v.distance.Visible = true
  622. else
  623. v.distance.Visible = false
  624. end
  625.  
  626. if esp.settings.box.enabled then
  627. v.boxOutline.Size = BoxSize
  628. v.boxOutline.Position = BoxPos
  629. v.boxOutline.Visible = esp.settings.box.outline
  630.  
  631. v.box.Size = BoxSize
  632. v.box.Position = BoxPos
  633. v.box.Color = esp.settings.box.color
  634. v.box.Visible = true
  635. else
  636. v.boxOutline.Visible = false
  637. v.box.Visible = false
  638. end
  639.  
  640. if esp.settings.healthbar.enabled then
  641. v.healthBar.From = Vector2new((BoxPos.X - 5), BoxPos.Y + BoxSize.Y)
  642. v.healthBar.To = Vector2new(v.healthBar.From.X, v.healthBar.From.Y - (hum.Health / hum.MaxHealth) * BoxSize.Y)
  643. v.healthBar.Color = Color3fromRGB(255 - 255 / (hum["MaxHealth"] / hum["Health"]), 255 / (hum["MaxHealth"] / hum["Health"]), 0)
  644. v.healthBar.Visible = true
  645.  
  646. v.healthBarOutline.From = Vector2new(v.healthBar.From.X, BoxPos.Y + BoxSize.Y + 1)
  647. v.healthBarOutline.To = Vector2new(v.healthBar.From.X, (v.healthBar.From.Y - 1 * BoxSize.Y) -1)
  648. v.healthBarOutline.Visible = esp.settings.healthbar.outline
  649. else
  650. v.healthBarOutline.Visible = false
  651. v.healthBar.Visible = false
  652. end
  653.  
  654. if esp.settings.healthtext.enabled then
  655. v.healthText.Text = tostring(mathfloor((hum.Health / hum.MaxHealth) * 100 + 0.5))
  656. v.healthText.Position = Vector2new((BoxPos.X - 20), (BoxPos.Y + BoxSize.Y - 1 * BoxSize.Y) -1)
  657. v.healthText.Color = esp.settings.healthtext.color
  658. v.healthText.Outline = esp.settings.healthtext.outline
  659.  
  660. v.healthText.Font = esp.font
  661. v.healthText.Size = esp.fontsize
  662.  
  663. v.healthText.Visible = true
  664. else
  665. v.healthText.Visible = false
  666. end
  667.  
  668. if esp.settings.viewangle.enabled then
  669. local fromHead = camera:worldToViewportPoint(head.CFrame.p)
  670. local toPoint = camera:worldToViewportPoint((head.CFrame + (head.CFrame.lookVector * 10)).p)
  671. v.viewAngle.From = Vector2.new(fromHead.X, fromHead.Y)
  672. v.viewAngle.To = Vector2.new(toPoint.X, toPoint.Y)
  673. v.viewAngle.Color = esp.settings.viewangle.color
  674. v.viewAngle.Visible = true
  675. end
  676.  
  677. if esp.teamcheck then
  678. if esp.TeamCheck(i) then
  679. v.name.Visible = esp.settings.name.enabled
  680. v.box.Visible = esp.settings.box.enabled
  681. v.healthBar.Visible = esp.settings.healthbar.enabled
  682. v.healthText.Visible = esp.settings.healthtext.enabled
  683. v.distance.Visible = esp.settings.distance.enabled
  684. v.viewAngle.Visible = esp.settings.viewangle.enabled
  685. if library.flags["ESP_Outlines"] then
  686. if esp.settings.box.enabled then
  687. v.boxOutline.Visible = esp.settings.box.outline
  688. v.boxOutline.Visible = esp.settings.box.outline
  689. end
  690.  
  691. if esp.settings.healthbar.enabled then
  692. v.healthBarOutline.Visible = esp.settings.healthbar.outline
  693. end
  694. end
  695. else
  696. v.name.Visible = false
  697. v.boxOutline.Visible = false
  698. v.box.Visible = false
  699. v.healthBarOutline.Visible = false
  700. v.healthBar.Visible = false
  701. v.healthText.Visible = false
  702. v.distance.Visible = false
  703. v.viewAngle.Visible = false
  704. end
  705. end
  706. else
  707. v.name.Visible = false
  708. v.boxOutline.Visible = false
  709. v.box.Visible = false
  710. v.healthBarOutline.Visible = false
  711. v.healthBar.Visible = false
  712. v.healthText.Visible = false
  713. v.distance.Visible = false
  714. v.viewAngle.Visible = false
  715. end
  716. else
  717. v.name.Visible = false
  718. v.boxOutline.Visible = false
  719. v.box.Visible = false
  720. v.healthBarOutline.Visible = false
  721. v.healthBar.Visible = false
  722. v.healthText.Visible = false
  723. v.distance.Visible = false
  724. v.viewAngle.Visible = false
  725. end
  726. end
  727.  
  728. if library.flags["Aim_BotToggle"] and not library.flags["Aim_SilentToggle"] then
  729. if library.flags["Aim_KeyDown"] then
  730. local targetPlr = closestToMouse()
  731. if targetPlr ~= nil then
  732. camera.CFrame = CFrame.new(camera.CFrame.Position, targetPlr.Character[library.flags["Aim_TargetPart"]].Position)
  733. end
  734. end
  735. end
  736.  
  737. if library.flags["Snapline_Toggle"] then
  738. local ClosestPlayer = Snapline_Closest()
  739.  
  740. if ClosestPlayer ~= nil and ClosestPlayer.Character and ClosestPlayer.Character:FindFirstChild("HumanoidRootPart") and ClosestPlayer.Character:FindFirstChild("Head") then
  741. local snapVector, snapOnScreen = camera:worldToViewportPoint(ClosestPlayer.Character[library.flags["Snapline_TargetPart"]].Position)
  742. if snapOnScreen then
  743. Snapline_Line.From = Vector2new(uis:GetMouseLocation().X, uis:GetMouseLocation().Y)
  744. Snapline_Line.To = Vector2new(snapVector.X, snapVector.Y)
  745. Snapline_Line.Visible = true
  746. else
  747. Snapline_Line.Visible = false
  748. end
  749. else
  750. Snapline_Line.Visible = false
  751. end
  752. end
  753.  
  754. if library.flags["Player_SpeedToggle"] then
  755. if plr.Character and plr.Character:FindFirstChild("Humanoid") then
  756. plr.Character.Humanoid.WalkSpeed = library.flags["Player_SpeedValue"]
  757. end
  758. end
  759.  
  760. if library.flags["Player_JumpToggle"] then
  761. if plr.Character and plr.Character:FindFirstChild("Humanoid") then
  762. plr.Character.Humanoid.JumpPower = library.flags["Player_JumpValue"]
  763. end
  764. end
  765.  
  766. if library.flags["Light_ForceTime"] then
  767. lighting.ClockTime = library.flags["Light_Time"]
  768. end
  769.  
  770. if library.flags["Light_Atmosphere"] then
  771. lighting.Atmosphere.Density = 0.31999999284744
  772. else
  773. lighting.Atmosphere.Density = 0
  774. end
  775.  
  776. local plrToGet = closestToMouse()
  777.  
  778. if plrToGet ~= nil and plrToGet.Character and plrToGet.Character:FindFirstChild("HumanoidRootPart") and plrToGet.Character:FindFirstChild("Head") then
  779. Plr_Target = plrToGet.Character[library.flags["Aim_TargetPart"]]
  780. Plr_Target_Predicted = Plr_Target.CFrame.p + Plr_Target.Velocity / library.flags["Aim_SilentPrediction"]
  781. end
  782. end)
  783.  
  784. --[FOV Function]
  785.  
  786. camera:GetPropertyChangedSignal("FieldOfView"):Connect(function()
  787. if library.flags["Player_FOVToggle"] then
  788. camera.FieldOfView = library.flags["Player_FOVValue"]
  789. end
  790. end)
  791.  
  792. --[Security]
  793.  
  794. local oldSecNamecall
  795. oldSecNamecall = hookmetamethod(game, "__namecall", function(self, ...)
  796. local args = {...}
  797.  
  798. if getnamecallmethod() == "FireServer" and tostring(self) == "ErrorLog" then
  799. return
  800. end
  801.  
  802. if getnamecallmethod() == "FireServer" and tostring(self) == "Drowning" then
  803. if library.flag["Player_NoDrown"] then
  804. return
  805. end
  806. end
  807.  
  808. return oldSecNamecall(self, ...)
  809. end)
  810.  
  811. --[Silent Aim]
  812.  
  813. local oldSilent;
  814. oldSilent = hookmetamethod(game,"__index",function(self,prop)
  815. local calling = getcallingscript()
  816.  
  817. if tostring(self) == "Barrel" and prop == "CFrame" and library.flags["Aim_BotToggle"] and library.flags["Aim_SilentToggle"] then
  818. return CFrame.new(oldSilent(self,"Position"), Plr_Target_Predicted)
  819. end
  820.  
  821. return oldSilent(self,prop)
  822. end)
  823.  
  824. --[Silent Aim End]
  825.  
  826. --[Loaded Timer]
  827.  
  828. game:GetService("StarterGui"):SetCore("SendNotification", {
  829. Title = "Oblivity",
  830. Text = ("Took %s seconds to load the script\n"):format(math.round((tick() - executedTimer) *10^3) * 10^-3)
  831. })
Add Comment
Please, Sign In to add comment