Advertisement
Graizy

Untitled

Mar 17th, 2022
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.63 KB | None | 0 0
  1. repeat wait() until game:IsLoaded()
  2.  
  3. -- Fail checks
  4. if game.PlaceId ~= 901793731 then
  5. game.Players.LocalPlayer:Kick("D-Day Destroyer only works on D-Day .")
  6. return
  7. end
  8.  
  9. if getgenv().ddestroyer_executed == true then
  10. game.Players.LocalPlayer:Kick("DDestroyer was already executed once.")
  11. return
  12. else
  13. getgenv().ddestroyer_executed = true
  14. end
  15.  
  16.  
  17. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  18. local UserInputService = game:GetService("UserInputService")
  19. local RunService = game:GetService("RunService")
  20. local Players = game:GetService("Players")
  21. local TweenService = game:GetService("TweenService")
  22. local FrameworkLib = require(game:GetService("ReplicatedStorage"):WaitForChild("Modules"):WaitForChild("Universal"):WaitForChild("Framework"))
  23.  
  24. -- Needed map things
  25. local map = workspace:WaitForChild("Map")
  26. local vegetation = workspace:WaitForChild("Vegetation")
  27. local map_boundaries = workspace:WaitForChild("Map_Boundaries")
  28. local boundaries = workspace:WaitForChild("Boundaries")
  29. local helmet_crates = workspace:WaitForChild("Helmet_Crates")
  30. local medic_bags = workspace:WaitForChild("Medic_Bags")
  31.  
  32. -- Settings
  33. local can_shoot = true
  34.  
  35. -- Triggerbot X
  36. getgenv().triggerbot = false
  37.  
  38. -- Aimbot X
  39. getgenv().aimbot = false
  40. getgenv().aiming = false
  41. getgenv().aimbotfov = 0
  42. getgenv().closest_to_cursor = false
  43. getgenv().aimbotfovcircle = false
  44. getgenv().aimbotfovcolor = Color3.new(255, 0, 0)
  45. getgenv().aimbotparts = {}
  46. getgenv().silent = false
  47. getgenv().silentautoshoot = false
  48. getgenv().aimbot_button = Enum.KeyCode.LeftAlt
  49. getgenv().aimbot_always_on = false
  50.  
  51. -- Gun settings X
  52. getgenv().everygunauto = false
  53. getgenv().nocamerashake = false
  54. getgenv().nospread = false
  55. getgenv().infiniteammo = false
  56. getgenv().aimview_tog = false
  57. getgenv().aimview = 0
  58.  
  59. -- Esp X
  60. getgenv().player_esp = false
  61. getgenv().player_esp_color = Color3.new(255,0,0)
  62. getgenv().player_tracers = false
  63. getgenv().player_tracers_color = Color3.new(255,0,0)
  64. getgenv().mine_esp = false
  65. getgenv().mine_esp_color = Color3.new(255,0,0)
  66.  
  67. -- Cursor Silent kill X
  68. getgenv().cursor_silentkill = false
  69.  
  70. -- Shoot aura X
  71. getgenv().shootaura = false
  72. getgenv().shootauraparts = {"Head", "HumanoidRootPart", "LeftHand", "RightHand", "LeftLowerArm", "RightLowerArm", "RightUpperArm", "LeftUpperArm"}
  73. getgenv().shootaurafov = 0
  74. getgenv().shootaura_range = math.huge
  75. getgenv().shootaurafovcircle = false
  76. getgenv().shootaurafovcolor = Color3.new(255,0,0)
  77.  
  78. -- Local Player stuff X
  79. getgenv().walkspeedtog = false
  80. getgenv().walkspeedval = 64
  81. getgenv().jumppowertog = false
  82. getgenv().jumppowerval = 64
  83. getgenv().walkspeedtog = false
  84. getgenv().walkspeedval = 64
  85. getgenv().collide = true
  86.  
  87. -- Player data
  88. local possible_player_parts =
  89. {
  90. "Helmet",
  91. "Head",
  92. "UpperTorso",
  93. "LowerTorso",
  94. "LeftUpperArm",
  95. "RightUpperArm",
  96. "LeftLowerArm",
  97. "RightLowerArm",
  98. "LeftHand",
  99. "RightHand",
  100. "LeftUpperLeg",
  101. "RightUpperLeg",
  102. "LeftLowerLeg",
  103. "RightLowerLeg",
  104. "LeftFoot",
  105. "RightFoot"
  106. }
  107. local player_data = {}
  108.  
  109. -- Universal functions
  110. local function updatePlayerData()
  111. player_data["player"] = Players.LocalPlayer
  112. player_data["character"] = player_data["player"].Character or player_data["player"].CharacterAdded:Wait()
  113. player_data["humanoid"] = player_data["character"]:WaitForChild("Humanoid")
  114. player_data["root"] = player_data["character"]:WaitForChild("HumanoidRootPart")
  115. player_data["camera"] = workspace.CurrentCamera
  116. end
  117.  
  118. updatePlayerData()
  119.  
  120. local function getDistanceFromPlayer(part)
  121. return (player_data["root"].Position - part.Position).Magnitude
  122. end
  123.  
  124. local function createInstance(inst, args)
  125. local instance = Instance.new(inst)
  126. -- Instance properties
  127. for key, value in pairs(args) do
  128. instance[key] = value
  129. end
  130. return instance
  131. end
  132.  
  133. -- Cheat functions
  134. -- COOL GUN STUFF
  135. local function setGunSettings(gun)
  136. if gun == nil or not gun:IsA("Tool") then
  137. return
  138. end
  139. local gun_info = FrameworkLib.weapons:FindFirstChild(gun.Name)
  140. if not gun_info then
  141. return
  142. end
  143. local gun_settings = gun_info:FindFirstChild("Setting")
  144. if not gun_settings then
  145. return
  146. end
  147. gun_settings = require(gun_settings)
  148.  
  149. local unequipped = false
  150. local unequipped_e
  151. unequipped_e = gun.Unequipped:Connect(function()
  152. unequipped = true
  153. unequipped_e:Disconnect()
  154. end)
  155.  
  156. local gun_script = gun:FindFirstChild("GunScript_Local")
  157. if not gun_script then
  158. return
  159. end
  160. local script_env = getsenv(gun_script)
  161.  
  162. local ToolAction = script_env.ToolAction
  163. local DetermineSpread = script_env.DetermineSpread
  164.  
  165. if getgenv().everygunauto then
  166. local table_ = getupvalue(ToolAction, 10)
  167. table_.Auto = true
  168. setupvalue(ToolAction, 10, table_)
  169. end
  170.  
  171. local fake_camera = Instance.new("Camera")
  172. while not unequipped do
  173. if getgenv().nocamerashake then
  174. setupvalue(ToolAction, 9, fake_camera)
  175. end
  176. if getgenv().infiniteammo then
  177. setupvalue(ToolAction, 5, gun_settings.AmmoPerClip)
  178. end
  179. if getgenv().aimview_tog then
  180. local table_ = getupvalue(ToolAction, 10)
  181. table_.AimView = getgenv().aimview
  182. setupvalue(ToolAction, 10, table_)
  183. end
  184. wait()
  185. end
  186. fake_camera:Destroy()
  187. end
  188.  
  189. player_data["character"].ChildAdded:Connect(function(child)
  190. setGunSettings(child)
  191. end)
  192.  
  193. player_data["player"].CharacterAdded:Connect(function()
  194. updatePlayerData()
  195. player_data["character"].ChildAdded:Connect(function(child)
  196. setGunSettings(child)
  197. end)
  198. end)
  199.  
  200. -- ESP
  201. local function drawBoxOnPlayer(player)
  202. local box = Drawing.new("Square")
  203. box.Visible = false
  204. box.Thickness = 1
  205. box.Transparency = 1
  206. box.Filled = false
  207. local connection
  208. connection = RunService.RenderStepped:Connect(function()
  209. box.Visible = false
  210. if player == nil or player.Parent == nil then
  211. connection:Disconnect()
  212. box:Remove()
  213. return
  214. end
  215. local character = player.Character
  216. if player == player_data["player"] or character == nil then
  217. return
  218. end
  219.  
  220. local root = character:FindFirstChild("HumanoidRootPart")
  221. if root == nil then
  222. return
  223. end
  224.  
  225. if (root.Position - player_data["root"].Position).Magnitude <= 8 then
  226. return
  227. end
  228.  
  229. local humanoid = character:FindFirstChild("Humanoid")
  230. if not humanoid then
  231. return
  232. end
  233.  
  234. local head = character:FindFirstChild("Head")
  235. if not head then
  236. return
  237. end
  238.  
  239. local vector, on_screen = player_data["camera"]:worldToViewportPoint(root.Position)
  240.  
  241. local root_position, root_on_screen = player_data["camera"]:worldToViewportPoint(root.Position)
  242. local head_position, head_on_screen = player_data["camera"]:worldToViewportPoint(root.Position)
  243. local legs_position, legs_on_screen = player_data["camera"]:worldToViewportPoint(root.Position - Vector3.new(0, 3, 0))
  244.  
  245. if on_screen and player.TeamColor ~= player_data["player"].TeamColor and humanoid:GetState() ~= Enum.HumanoidStateType.Dead and humanoid.Health > 0 then
  246. box.Size = Vector2.new(1000 / root_position.Z, head_position.Y - legs_position.Y)
  247. box.Position = Vector2.new(root_position.X - box.Size.X / 2, root_position.Y - box.Size.Y / 2)
  248. box.Color = getgenv().player_esp_color
  249. box.Visible = getgenv().player_esp
  250. end
  251. end)
  252. end
  253.  
  254. local function playerEsp()
  255. for index, player in pairs(Players:GetPlayers()) do
  256. drawBoxOnPlayer(player)
  257. end
  258. Players.PlayerAdded:Connect(function(player)
  259. drawBoxOnPlayer(player)
  260. end)
  261. end
  262.  
  263. -- Mine ESP
  264. local function drawBoxOnPart(part)
  265. local box = Drawing.new("Square")
  266. box.Visible = false
  267. box.Thickness = 1
  268. box.Transparency = 1
  269. box.Filled = false
  270. local connection
  271. connection = RunService.RenderStepped:Connect(function()
  272. box.Visible = false
  273. if part == nil or part.Parent == nil then
  274. connection:Disconnect()
  275. box:Remove()
  276. return
  277. end
  278. if not part:IsDescendantOf(workspace) then
  279. return
  280. end
  281.  
  282. local position, on_screen = player_data["camera"]:worldToViewportPoint(part.Position)
  283.  
  284. if on_screen then
  285. box.Size = Vector2.new(500 / position.Z, 500 / position.Z)
  286. box.Position = Vector2.new(position.X - box.Size.X / 2, position.Y - box.Size.Y / 2)
  287. box.Color = getgenv().mine_esp_color
  288. box.Visible = getgenv().mine_esp
  289. end
  290. end)
  291. end
  292.  
  293. local function mineEsp()
  294. for index, part in pairs(map:GetChildren()) do
  295. if part.Name == "Static_Landmine" then
  296. drawBoxOnPart(part)
  297. end
  298. end
  299. map.ChildAdded:Connect(function(part)
  300. if part.Name == "Static_Landmine" then
  301. drawBoxOnPart(part)
  302. end
  303. end)
  304. end
  305.  
  306. -- Tracers
  307. local function drawLineToPlayer(player)
  308. local line = Drawing.new("Line")
  309. line.Visible = true
  310. line.Transparency = 1
  311. line.Thickness = 2
  312. line.Color = getgenv().player_tracers_color
  313.  
  314. local connection
  315. connection = RunService.RenderStepped:Connect(function()
  316. line.Visible = false
  317. if player == nil then
  318. line:Remove()
  319. connection:Disconnect()
  320. return
  321. end
  322.  
  323. if player == player_data["player"] then
  324. return
  325. end
  326.  
  327. if player.TeamColor == player_data["player"].TeamColor then
  328. return
  329. end
  330.  
  331. local character = player.Character
  332. if character == nil then
  333. return
  334. end
  335.  
  336. local root = character:FindFirstChild("HumanoidRootPart")
  337. if root == nil then
  338. return
  339. end
  340.  
  341. if (root.Position - player_data["root"].Position).Magnitude <= 8 then
  342. return
  343. end
  344.  
  345. local legs_pos = root.CFrame.Position - Vector3.new(0, 3, 0)
  346.  
  347. -- Getting variables needed for the end of the line
  348. local current_camera = workspace.CurrentCamera
  349. if current_camera == nil then
  350. return
  351. end
  352.  
  353. local position, on_screen = current_camera:WorldToViewportPoint(legs_pos)
  354.  
  355. if not on_screen then
  356. return
  357. end
  358. -- Getting variables needed for the start of the line
  359. local width = current_camera.ViewportSize.X
  360. local height = current_camera.ViewportSize.Y
  361.  
  362. line.Visible = getgenv().player_tracers
  363. line.From = Vector2.new(width / 2, height - (height * 0.1))
  364. line.To = Vector2.new(position.X, position.Y)
  365. line.Color = getgenv().player_tracers_color
  366. end)
  367. end
  368.  
  369. local function playerTracers()
  370. for index, player in pairs(Players:GetPlayers()) do
  371. drawLineToPlayer(player)
  372. end
  373. Players.PlayerAdded:Connect(function(player)
  374. drawLineToPlayer(player)
  375. end)
  376. end
  377.  
  378. -- Aimbot
  379. local function isInView(target)
  380. local origin = player_data["character"]:FindFirstChild("Head")
  381. if origin == nil then
  382. return
  383. end
  384.  
  385. local start_position = origin.CFrame.Position
  386. local end_position = target.CFrame.Position
  387. local distance = (start_position - end_position).Magnitude
  388.  
  389.  
  390. local raycast_params = RaycastParams.new()
  391. raycast_params.FilterDescendantsInstances = {map_boundaries, vegetation, player_data["character"], boundaries}
  392. raycast_params.FilterType = Enum.RaycastFilterType.Blacklist
  393. raycast_params.IgnoreWater = false
  394.  
  395. local result = workspace:Raycast(start_position, (end_position - start_position).Unit * distance, raycast_params)
  396.  
  397. if result == nil then
  398. return false
  399. end
  400.  
  401. return result.Instance == target
  402. end
  403.  
  404. local function getClosestPlayer(target_parts, fov, max_distance, on_screen, in_view, closest_to_cursor)
  405. local camera = workspace.CurrentCamera
  406. local current_distance = max_distance
  407. local current_char = nil
  408. local current_aimpart = nil
  409. local current_distance_from_cursor = fov + 1
  410. for index, player in pairs(Players:GetPlayers()) do
  411. if player == player_data["player"] or player.TeamColor == player_data["player"].TeamColor or player.Name == "#!D" then
  412. continue
  413. end
  414. local character = player.Character
  415. if character == nil or character:FindFirstChild("ForceField") or character.Name == "#!D" then
  416. continue
  417. end
  418.  
  419. local aim_part = nil
  420. for i, v in pairs(target_parts) do
  421. local part = character:FindFirstChild(v)
  422. if v == "Helmet" then
  423. if part == nil then
  424. continue
  425. end
  426. part = part:FindFirstChild("Actual_Helmet")
  427. end
  428. if part ~= nil and isInView(part) then
  429. aim_part = part
  430. break
  431. end
  432. end
  433.  
  434. if aim_part == nil then
  435. continue
  436. end
  437.  
  438. local aim_part_pos, aim_part_onscreen = camera:WorldToViewportPoint(aim_part.Position)
  439. if not aim_part_onscreen and on_screen then
  440. continue
  441. end
  442.  
  443. local cursor_pos = UserInputService:GetMouseLocation()
  444. local distance_from_cursor = (cursor_pos - Vector2.new(aim_part_pos.X, aim_part_pos.Y)).Magnitude
  445. if distance_from_cursor > fov then
  446. continue
  447. end
  448.  
  449. if distance_from_cursor > current_distance_from_cursor and closest_to_cursor then
  450. continue
  451. end
  452.  
  453. local humanoid = character:FindFirstChild("Humanoid")
  454.  
  455. if humanoid == nil or humanoid:GetState() == Enum.HumanoidStateType.Dead or humanoid.Health <= 0 then
  456. continue
  457. end
  458.  
  459. local root = character:FindFirstChild("HumanoidRootPart")
  460. if root == nil then
  461. continue
  462. end
  463.  
  464. if (root.Position - player_data["root"].Position).Magnitude <= 8 then
  465. continue
  466. end
  467.  
  468. local aim_part_distance = getDistanceFromPlayer(aim_part)
  469. if aim_part_distance < current_distance then
  470. current_char = character
  471. current_distance = aim_part_distance
  472. current_aim_part = aim_part
  473. end
  474. end
  475. return current_char, current_aim_part
  476. end
  477.  
  478. -- Aimbot fov circle
  479. local fovcircle = Drawing.new("Circle")
  480. fovcircle.Visible = getgenv().aimbotfovcircle
  481. fovcircle.Radius = getgenv().aimbotfov
  482. fovcircle.Color = getgenv().aimbotfovcolor
  483. fovcircle.Thickness = 1
  484. fovcircle.Filled = false
  485. fovcircle.Transparency = 1
  486.  
  487. RunService.RenderStepped:Connect(function()
  488. fovcircle.Visible = false
  489. if getgenv().aimbotfov < 2000 then
  490. fovcircle.Visible = getgenv().aimbotfovcircle
  491. fovcircle.Radius = getgenv().aimbotfov
  492. fovcircle.Color = getgenv().aimbotfovcolor
  493. fovcircle.Position = UserInputService:GetMouseLocation()
  494. end
  495. end)
  496.  
  497. -- shoot target
  498. local function shootAt(gun, target_part)
  499. -- Target info
  500. local target = target_part.Parent
  501. local target_humanoid = target:FindFirstChild("Humanoid")
  502. if target_humanoid == nil then
  503. return
  504. end
  505. local target_root = target:FindFirstChild("HumanoidRootPart")
  506. if target_root == nil then
  507. return
  508. end
  509.  
  510. -- Gun info
  511. if gun == nil then
  512. return
  513. end
  514.  
  515. local gun_info = FrameworkLib.weapons:FindFirstChild(gun.Name)
  516. if not gun_info then
  517. return
  518. end
  519.  
  520. local gun_settings = gun_info:FindFirstChild("Setting")
  521. if not gun_settings then
  522. return
  523. end
  524. gun_settings = require(gun_settings)
  525.  
  526. if target_part.Name == "Head" then
  527. gun_damage = gun_settings.BaseDamage * gun_settings.HeadshotDamageMultiplier
  528. end
  529.  
  530. if target_part.Name == "Actual_Helmet" then
  531. gun_damage = 0
  532. end
  533.  
  534. gun_damage = math.ceil(gun_damage)
  535.  
  536. -- Shooting the gun
  537. if can_shoot then
  538. can_shoot = false
  539. delay(gun_settings.FireRate, function()
  540. can_shoot = true
  541. end)
  542. return FrameworkLib.remote.Attempt_Fire:FireServer(gun, target_part, target_humanoid, target_root, target_part.Position, nil, gun_damage, gun_settings.AmmoPerClip, gun_settings.AmmoPerClip, gun_settings.FireRate, false)
  543. end
  544. end
  545.  
  546.  
  547. -- Aimbot logic
  548. RunService.Heartbeat:Connect(function()
  549. if getgenv().aimbot then
  550. if getgenv().aiming or getgenv().aimbot_always_on then
  551. if not getgenv().silent then
  552. local closest, aim_part = getClosestPlayer(getgenv().aimbotparts, getgenv().aimbotfov, math.huge, getgenv().aimbotfov < 2000, true, getgenv().closest_to_cursor)
  553. local camera = workspace.CurrentCamera
  554. if closest and aim_part then
  555. local part_pos = aim_part.Position
  556. camera.CFrame = CFrame.new(camera.CFrame.Position, part_pos)
  557. end
  558. else
  559. if getgenv().silentautoshoot then
  560. local closest, aim_part = getClosestPlayer(getgenv().aimbotparts, getgenv().aimbotfov, math.huge, getgenv().aimbotfov < 2000, true, getgenv().closest_to_cursor)
  561. if closest and aim_part then
  562. for i, v in pairs(player_data["character"]:GetChildren()) do
  563. if not v:IsA("Tool") then
  564. continue
  565. end
  566. local gun_info = FrameworkLib.weapons:FindFirstChild(v.Name)
  567. if not gun_info then
  568. continue
  569. end
  570. mouse1click()
  571. end
  572. end
  573. end
  574. end
  575. end
  576. end
  577. end)
  578.  
  579. local oldClientBullet
  580. oldClientBullet = hookfunction(FrameworkLib.modules.Client_Bullet, function(...)
  581. local args = {...}
  582. if getgenv().nospread then
  583. args[4] = CFrame.Angles(0,0,0)
  584. end
  585. if getgenv().aimbot and (getgenv().aiming or getgenv().aimbot_always_on) and getgenv().silent then
  586. --[[
  587. [1] = shooting_player,
  588. [2] = weapon,
  589. [3] = aimed_at_position,
  590. [4] = spread,
  591. [5] = crosshair_hitmarker,
  592. [6] = gun_ammo
  593. ]]
  594. local closest, aim_part = getClosestPlayer(getgenv().aimbotparts, getgenv().aimbotfov, math.huge, getgenv().aimbotfov < 2000, true, getgenv().closest_to_cursor)
  595. if closest and aim_part then
  596. args[3] = aim_part.Position
  597. args[4] = CFrame.Angles(0,0,0)
  598. end
  599. end
  600. return oldClientBullet(unpack(args))
  601. end)
  602.  
  603. -- Trigger bot
  604. local function getAimedAt(max_length)
  605. local camera = workspace.CurrentCamera
  606. local mouse = player_data["player"]:GetMouse()
  607. local ray = camera:ScreenPointToRay(mouse.X, mouse.Y)
  608. local raycast_params = RaycastParams.new()
  609. raycast_params.FilterDescendantsInstances = {map_boundaries, vegetation, player_data["character"], boundaries}
  610. raycast_params.FilterType = Enum.RaycastFilterType.Blacklist
  611. raycast_params.IgnoreWater = false
  612.  
  613. return workspace:Raycast(ray.Origin, ray.Direction * max_length, raycast_params)
  614. end
  615.  
  616. RunService.Heartbeat:Connect(function()
  617. if getgenv().triggerbot then
  618. --local mouse = player_data["player"]:GetMouse()
  619. --local target = mouse.Target
  620. local result = getAimedAt(25000)
  621. if result == nil then
  622. return
  623. end
  624.  
  625. local target = result.Instance
  626. if target == nil then
  627. return
  628. end
  629. target = target.Parent
  630. if target.Name == "Helmet" then
  631. target = target.Parent
  632. end
  633.  
  634. local target_humanoid = target:FindFirstChild("Humanoid")
  635. local target_head = target:FindFirstChild("Head")
  636. local target_root = target:FindFirstChild("HumanoidRootPart")
  637.  
  638. if target_humanoid ~= nil and target_head ~= nil and target_root ~= nil then
  639.  
  640. local player = Players:GetPlayerFromCharacter(target)
  641. if player == nil then
  642. return
  643. end
  644.  
  645. if player.Team == player_data["player"].Team then
  646. return
  647. end
  648.  
  649. for i, v in pairs(player_data["character"]:GetChildren()) do
  650. if not v:IsA("Tool") then
  651. continue
  652. end
  653. local gun_info = FrameworkLib.weapons:FindFirstChild(v.Name)
  654. if not gun_info then
  655. continue
  656. end
  657. mouse1click()
  658. end
  659. end
  660. end
  661. end)
  662.  
  663. -- Cursor silent kill
  664. RunService.Heartbeat:Connect(function()
  665. if getgenv().cursor_silentkill then
  666. --local mouse = player_data["player"]:GetMouse()
  667. --local target = mouse.Target
  668. local result = getAimedAt(25000)
  669. if result == nil then
  670. return
  671. end
  672.  
  673. local target = result.Instance
  674. if target == nil then
  675. return
  676. end
  677. target = target.Parent
  678. if target.Name == "Helmet" then
  679. target = target.Parent
  680. end
  681.  
  682. local target_humanoid = target:FindFirstChild("Humanoid")
  683. local target_head = target:FindFirstChild("Head")
  684. local target_root = target:FindFirstChild("HumanoidRootPart")
  685.  
  686. if target_humanoid ~= nil and target_head ~= nil and target_root ~= nil then
  687.  
  688. local player = Players:GetPlayerFromCharacter(target)
  689. if player == nil then
  690. return
  691. end
  692.  
  693. if player.Team == player_data["player"].Team then
  694. return
  695. end
  696.  
  697. for i, v in pairs(player_data["character"]:GetChildren()) do
  698. if not v:IsA("Tool") then
  699. continue
  700. end
  701. local gun_info = FrameworkLib.weapons:FindFirstChild(v.Name)
  702. if not gun_info then
  703. continue
  704. end
  705.  
  706. local gun_settings = gun_info:FindFirstChild("Setting")
  707. if not gun_settings then
  708. continue
  709. end
  710. gun_settings = require(gun_settings)
  711.  
  712. gun_damage = gun_settings.BaseDamage * gun_settings.HeadshotDamageMultiplier
  713. gun_damage = math.ceil(gun_damage)
  714. shootAt(v, target_head)
  715. end
  716. end
  717. end
  718. end)
  719.  
  720. -- Shoot Aura
  721. RunService.Heartbeat:Connect(function()
  722. if getgenv().shootaura then
  723. local closest, aim_part = getClosestPlayer(getgenv().shootauraparts, getgenv().shootaurafov, getgenv().shootaura_range, false, getgenv().shootaurafov < 2000, false)
  724. if closest == nil or aim_part == nil then
  725. return
  726. end
  727.  
  728. for i, v in pairs(player_data["character"]:GetChildren()) do
  729. if not v:IsA("Tool") then
  730. continue
  731. end
  732. local gun_info = FrameworkLib.weapons:FindFirstChild(v.Name)
  733. if not gun_info then
  734. continue
  735. end
  736.  
  737. local gun_settings = gun_info:FindFirstChild("Setting")
  738. if not gun_settings then
  739. continue
  740. end
  741. gun_settings = require(gun_settings)
  742.  
  743. gun_damage = gun_settings.BaseDamage * gun_settings.HeadshotDamageMultiplier
  744. gun_damage = math.ceil(gun_damage)
  745. shootAt(v, aim_part)
  746. end
  747. end
  748. end)
  749.  
  750. -- Shoot aura fov circle
  751. local fovcircle_shootaura = Drawing.new("Circle")
  752. fovcircle_shootaura.Visible = getgenv().shootaurafovcircle
  753. fovcircle_shootaura.Radius = getgenv().shootaurafov
  754. fovcircle_shootaura.Color = getgenv().shootaurafovcolor
  755. fovcircle_shootaura.Thickness = 1
  756. fovcircle_shootaura.Filled = false
  757. fovcircle_shootaura.Transparency = 1
  758.  
  759. RunService.RenderStepped:Connect(function()
  760. fovcircle_shootaura.Visible = false
  761. if getgenv().shootaurafov < 2000 then
  762. fovcircle_shootaura.Visible = getgenv().shootaurafovcircle
  763. fovcircle_shootaura.Radius = getgenv().shootaurafov
  764. fovcircle_shootaura.Color = getgenv().shootaurafovcolor
  765. fovcircle_shootaura.Position = UserInputService:GetMouseLocation()
  766. end
  767. end)
  768.  
  769. -- Walkspeed
  770. local original_ws = player_data["humanoid"].WalkSpeed
  771. local original_jp = player_data["humanoid"].JumpPower
  772.  
  773. local oldIndex
  774. oldIndex = hookmetamethod(game, "__index", newcclosure(function(self_, key, ...)
  775. if not checkcaller() and self_ == player_data["humanoid"] then
  776. if key == "WalkSpeed" then
  777. return original_ws
  778. elseif key == "JumpPower" then
  779. return original_jp
  780. end
  781. end
  782. return oldIndex(self_, key, ...)
  783. end))
  784.  
  785. RunService.RenderStepped:Connect(function()
  786. if getgenv().walkspeedtog then
  787. player_data["humanoid"].WalkSpeed = getgenv().walkspeedval
  788. end
  789. end)
  790.  
  791. -- Jumppower
  792. RunService.RenderStepped:Connect(function()
  793. if getgenv().jumppowertog then
  794. player_data["humanoid"].JumpPower = getgenv().jumppowerval
  795. end
  796. end)
  797.  
  798. -- Noclip
  799. RunService.Stepped:Connect(function()
  800. pcall(function()
  801. player_data["character"].HumanoidRootPart.CanCollide = getgenv().collide
  802. player_data["character"].Head.CanCollide = getgenv().collide
  803. player_data["character"].UpperTorso.CanCollide = getgenv().collide
  804. player_data["character"].LowerTorso.CanCollide = getgenv().collide
  805. end)
  806. end)
  807.  
  808. -- Main Code
  809. playerEsp()
  810. playerTracers()
  811. mineEsp()
  812.  
  813. -- GUI
  814. local ui_config =
  815. {
  816. WindowName = "D-DAY DESTROYER | made by mayoo",
  817. Color = Color3.fromRGB(255,128,64),
  818. Keybind = Enum.KeyCode.M
  819. }
  820. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/AlexR32/Roblox/main/BracketV3.lua"))()
  821. local window = Library:CreateWindow(ui_config, game:GetService("CoreGui"))
  822.  
  823.  
  824. --===============================================================================================================================================================
  825. -- Main tab
  826. local main_tab = window:CreateTab("Main")
  827.  
  828.  
  829. ----------------------------------------------------------------------------------------------------------------------------------------------------------------
  830. -- Aimbot section
  831. --[[
  832. getgenv().aimbot = false X
  833. getgenv().aiming = false
  834. getgenv().aimbotfov = 300 X
  835. getgenv().closest_to_cursor = false X
  836. getgenv().aimbotfovcircle = false X
  837. getgenv().aimbotfovcolor = Color3.new(255, 0, 0) X
  838. getgenv().aimbotparts = {"Head", "HumanoidRootPart", "LeftLowerArm", "RightLowerArm", "LeftUpperArm", "RightUpperArm", "LeftHand", "RightHand", "Helmet"}
  839. getgenv().silent = false X
  840. getgenv().silentautoshoot = false X
  841. getgenv().aimbot_button = Enum.KeyCode.E X
  842. getgenv().aimbot_always_on = false X
  843. ]]
  844. local aimbot_section = main_tab:CreateSection("Aimbot")
  845.  
  846. -- aimbot
  847. local aimbot_toggle = aimbot_section:CreateToggle("ON/OFF", nil, function(state)
  848. getgenv().aimbot = state
  849. end)
  850.  
  851. -- silent
  852. local silent_toggle = aimbot_section:CreateToggle("Silent", nil, function(state)
  853. getgenv().silent = state
  854. end)
  855.  
  856. -- aiming
  857. local aiming_toggle = aimbot_section:CreateToggle("Aimbot bind", nil, function(state)
  858. getgenv().aiming = state
  859. end)
  860.  
  861. local aiming_keybind = aiming_toggle:CreateKeybind(tostring(getgenv().aimbot_button):gsub("Enum.KeyCode.", ""), function(key)
  862. getgenv().aimbot_button = Enum.KeyCode[key]
  863. end)
  864.  
  865. -- silentautoshoot
  866. local silentautoshoot_toggle = aimbot_section:CreateToggle("Silent aimbot auto shoot", nil, function(state)
  867. getgenv().silentautoshoot = state
  868. end)
  869.  
  870. -- triggerbot
  871. local triggerbot_toggle = aimbot_section:CreateToggle("Triggerbot", nil, function(state)
  872. getgenv().triggerbot = state
  873. end)
  874.  
  875. -- aimbotfov
  876. local aimbotfov_label = aimbot_section:CreateLabel("2000 FOV = 360 degrees aimbot")
  877.  
  878. local aimbotfov_slider = aimbot_section:CreateSlider("FOV", 1, 2000, nil, true, function(value)
  879. getgenv().aimbotfov = value
  880. end)
  881.  
  882. -- aimbotfovcircle
  883. local aimbotfovcircle_toggle = aimbot_section:CreateToggle("Fov circle", nil, function(state)
  884. getgenv().aimbotfovcircle = state
  885. end)
  886.  
  887. -- aimbotfovcolor
  888. local aimbotfovcolor_picked = aimbot_section:CreateColorpicker("Fov circle color", function(color)
  889. getgenv().aimbotfovcolor = color
  890. end)
  891.  
  892. --closest_to_cursor
  893. local closest_to_cursor_toggle = aimbot_section:CreateToggle("Prefer closest to cursor", nil, function(state)
  894. getgenv().closest_to_cursor = state
  895. end)
  896.  
  897. -- aimbotparts
  898. local aimbotparts_chosen = {}
  899. local aimbotparts_chosen_label
  900. local aimbotparts_dropdown = aimbot_section:CreateDropdown("Aimbot parts", possible_player_parts, function(chosen)
  901. local found = false
  902. for i, v in pairs(aimbotparts_chosen) do
  903. if v == chosen then
  904. found = true
  905. table.remove(aimbotparts_chosen, i)
  906. end
  907. end
  908. if not found then
  909. table.insert(aimbotparts_chosen, chosen)
  910. end
  911.  
  912. getgenv().aimbotparts = aimbotparts_chosen
  913. -- Updating text
  914. local text = ""
  915. for i, v in pairs(aimbotparts_chosen) do
  916. text = text..i..". "..v.."\n"
  917. end
  918. aimbotparts_chosen_label:UpdateText(text)
  919. end)
  920.  
  921. aimbotparts_chosen_label = aimbot_section:CreateLabel("")
  922. ----------------------------------------------------------------------------------------------------------------------------------------------------------------
  923. -- Gun settings section
  924. --[[
  925. getgenv().everygunauto = false
  926. getgenv().nocamerashake = false
  927. getgenv().nospread = false
  928. getgenv().infiniteammo = true
  929. getgenv().aimview_tog = false
  930. getgenv().aimview = 0
  931. ]]
  932. local gunsettings_section = main_tab:CreateSection("Gun settings")
  933.  
  934. -- everygunauto
  935. local everygunauto_toggle = gunsettings_section:CreateToggle("Every gun automatic", nil, function(state)
  936. getgenv().everygunauto = state
  937. end)
  938.  
  939. -- nocamerashake
  940. local nocamerashake_toggle = gunsettings_section:CreateToggle("No camera shake", nil, function(state)
  941. getgenv().nocamerashake = state
  942. end)
  943.  
  944. -- nospread
  945. local nospread_toggle = gunsettings_section:CreateToggle("No spread", nil, function(state)
  946. getgenv().nospread = state
  947. end)
  948.  
  949. -- infiniteammo
  950. local infiniteammo_toggle = gunsettings_section:CreateToggle("Infinite ammo", nil, function(state)
  951. getgenv().infiniteammo = state
  952. end)
  953.  
  954. -- aimview_tog
  955. local aimview_tog_toggle = gunsettings_section:CreateToggle("Aiming fov", nil, function(state)
  956. getgenv().aimview_tog = state
  957. end)
  958.  
  959. -- aimview
  960. local aimview_slider = gunsettings_section:CreateSlider("FOV", 1, 300, nil, true, function(value)
  961. getgenv().aimview = value
  962. end)
  963. ----------------------------------------------------------------------------------------------------------------------------------------------------------------
  964. -- ESP section
  965. --[[
  966. getgenv().player_esp = true
  967. getgenv().player_esp_color = Color3.new(0,255,255)
  968. getgenv().player_tracers = false
  969. getgenv().player_tracers_color = Color3.new(0,255,255)
  970. getgenv().mine_esp = false
  971. getgenv().mine_esp_color = Color3.new(255,0,0)
  972. ]]
  973. local esp_section = main_tab:CreateSection("ESP")
  974.  
  975. -- PLAYER ESP
  976. local pesp_label = esp_section:CreateLabel("Player ESP")
  977.  
  978. -- player_esp
  979. local player_esp_toggle = esp_section:CreateToggle("ON/OFF", nil, function(state)
  980. getgenv().player_esp = state
  981. end)
  982.  
  983. -- player_esp_color
  984. local player_esp_color_picked = esp_section:CreateColorpicker("Color", function(color)
  985. getgenv().player_esp_color = color
  986. end)
  987.  
  988. -- PLAYER TRACERS
  989. local ptracers_label = esp_section:CreateLabel("Player Tracers")
  990.  
  991. -- player_tracers
  992. local player_tracers_toggle = esp_section:CreateToggle("ON/OFF", nil, function(state)
  993. getgenv().player_tracers = state
  994. end)
  995.  
  996. -- player_tracers_color
  997. local player_tracers_color_picked = esp_section:CreateColorpicker("Color", function(color)
  998. getgenv().player_tracers_color = color
  999. end)
  1000.  
  1001. -- MINE ESP
  1002. local mesp_label = esp_section:CreateLabel("Mine ESP")
  1003.  
  1004. -- mine_esp
  1005. local mine_esp_toggle = esp_section:CreateToggle("ON/OFF", nil, function(state)
  1006. getgenv().mine_esp = state
  1007. end)
  1008.  
  1009. -- mine_esp_color
  1010. local player_esp_color_picked = esp_section:CreateColorpicker("Color", function(color)
  1011. getgenv().mine_esp_color = color
  1012. end)
  1013. --===============================================================================================================================================================
  1014. -- OP tab
  1015. --[[
  1016. getgenv().cursor_silentkill = false
  1017.  
  1018. getgenv().shootaura = false X
  1019. getgenv().shootauraparts = {"Head", "HumanoidRootPart", "LeftHand", "RightHand", "LeftLowerArm", "RightLowerArm", "RightUpperArm", "LeftUpperArm"}
  1020. getgenv().shootaurafov = 300 X
  1021. getgenv().shootaura_range = math.huge X
  1022. getgenv().shootaurafovcircle = false X
  1023. getgenv().shootaurafovcolor = Color3.new(0, 255, 0)X
  1024. ]]
  1025. local op_tab = window:CreateTab("Over powered")
  1026.  
  1027. local silentkill_section = op_tab:CreateSection("Cursor silent kill")
  1028.  
  1029. -- cursor_silentkill
  1030. local cursor_silent_kill_toggle = silentkill_section:CreateToggle("ON/OFF", nil, function(state)
  1031. getgenv().cursor_silentkill = state
  1032. end)
  1033. ----------------------------------------------------------------------------------------------------------------------------------------------------------------
  1034. local shootaura_section = op_tab:CreateSection("Shoot aura")
  1035.  
  1036. -- shootaura
  1037. local shootaura_toggle = shootaura_section:CreateToggle("ON/OFF", nil, function(state)
  1038. getgenv().shootaura = state
  1039. end)
  1040.  
  1041. -- shootaurafov
  1042. local shootaurafov_label = shootaura_section:CreateLabel("2000 FOV = 360 degrees shoot aura")
  1043.  
  1044. local shootaurafov_slider = shootaura_section:CreateSlider("FOV", 1, 2000, nil, true, function(value)
  1045. getgenv().shootaurafov = value
  1046. end)
  1047.  
  1048. -- shootaurafovcircle
  1049. local aimbotfovcircle_toggle = shootaura_section:CreateToggle("Fov circle", nil, function(state)
  1050. getgenv().shootaurafovcircle = state
  1051. end)
  1052.  
  1053. -- aimbotfovcolor
  1054. local shootaurafovcolor_picked = shootaura_section:CreateColorpicker("Fov circle color", function(color)
  1055. getgenv().shootaurafovcolor = color
  1056. end)
  1057.  
  1058. -- shootaura_range
  1059. local shootaura_range_slider = shootaura_section:CreateSlider("Range", 100, 10000, nil, true, function(value)
  1060. getgenv().shootaura_range = value
  1061. end)
  1062.  
  1063. -- shootauraparts
  1064. local shootauraparts_chosen = {}
  1065. local shootauraparts_chosen_label
  1066. local shootauraparts_dropdown = shootaura_section:CreateDropdown("Shootaura parts", possible_player_parts, function(chosen)
  1067. local found = false
  1068. for i, v in pairs(shootauraparts_chosen) do
  1069. if v == chosen then
  1070. found = true
  1071. table.remove(shootauraparts_chosen, i)
  1072. end
  1073. end
  1074. if not found then
  1075. table.insert(shootauraparts_chosen, chosen)
  1076. end
  1077.  
  1078. getgenv().shootauraparts = shootauraparts_chosen
  1079. -- Updating text
  1080. local text = ""
  1081. for i, v in pairs(shootauraparts_chosen) do
  1082. text = text..i..". "..v.."\n"
  1083. end
  1084. shootauraparts_chosen_label:UpdateText(text)
  1085. end)
  1086.  
  1087. shootauraparts_chosen_label = shootaura_section:CreateLabel("")
  1088.  
  1089. --===============================================================================================================================================================
  1090. -- Local player tab
  1091.  
  1092. --[[
  1093. -- Local Player stuff
  1094. getgenv().walkspeedtog = false
  1095. getgenv().walkspeedval = 64
  1096. getgenv().jumppowertog = false
  1097. getgenv().jumppowerval = 64
  1098. getgenv().collide = true
  1099. ]]
  1100.  
  1101. local local_player_tab = window:CreateTab("Local Player")
  1102.  
  1103. ----------------------------------------------------------------------------------------------------------------------------------------------------------------
  1104. local walkspeed_section = local_player_tab:CreateSection("Walkspeed")
  1105.  
  1106. -- walkspeedtog
  1107. local walkspeedtog_toggle = walkspeed_section:CreateToggle("ON/OFF", nil, function(state)
  1108. getgenv().walkspeedtog = state
  1109. end)
  1110.  
  1111. -- walkspeedval
  1112. local walkspeedval_slider = walkspeed_section:CreateSlider("Value", 1, 100, nil, true, function(value)
  1113. getgenv().walkspeedval = value
  1114. end)
  1115.  
  1116. ----------------------------------------------------------------------------------------------------------------------------------------------------------------
  1117. local jumppower_section = local_player_tab:CreateSection("Jumppower")
  1118.  
  1119. -- jumppowertog
  1120. local jumppowertog_toggle = jumppower_section:CreateToggle("ON/OFF", nil, function(state)
  1121. getgenv().jumppowertog = state
  1122. end)
  1123.  
  1124. -- jumppowerval
  1125. local jumppowerval_slider = jumppower_section:CreateSlider("Value", 1, 100, nil, true, function(value)
  1126. getgenv().jumppowerval = value
  1127. end)
  1128.  
  1129. ----------------------------------------------------------------------------------------------------------------------------------------------------------------
  1130. local noclip_section = local_player_tab:CreateSection("Noclip")
  1131.  
  1132. -- collide (noclip)
  1133. local collide_toggle = noclip_section:CreateToggle("ON/OFF", nil, function(state)
  1134. getgenv().collide = not state
  1135. end)
  1136. ----------------------------------------------------------------------------------------------------------------------------------------------------------------
  1137. local toggle_gui_section = local_player_tab:CreateSection("Toggle GUI")
  1138.  
  1139. local ui_toggle = toggle_gui_section:CreateToggle("UI Toggle", nil, function(State)
  1140. window:Toggle(State)
  1141. end)
  1142. local ui_keybind = ui_toggle:CreateKeybind(tostring(ui_config.Keybind):gsub("Enum.KeyCode.", ""), function(key)
  1143. ui_config.Keybind = Enum.KeyCode[key]
  1144. end)
  1145.  
  1146. ui_toggle:SetState(true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement