The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
[Aimbot ESP More!] script pastebin roblox
By [Aimbot ESP More!] on 2024-09-21 08:00 am | Syntax: LUA | Views: 11



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  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  0 then
  226.             box.Size = Vector2.new(1000 / root_position.Z, head_position.Y - legs_position.Y)
  227.             box.Position = Vector2.new(root_position.X - box.Size.X / 2, root_position.Y - box.Size.Y / 2)
  228.             box.Color = getgenv().player_esp_color
  229.             box.Visible = getgenv().player_esp
  230.         end
  231.     end)
  232. end
  233.  
  234. local function playerEsp()
  235.     for index, player in pairs(Players:GetPlayers()) do
  236.         drawBoxOnPlayer(player)
  237.     end
  238.     Players.PlayerAdded:Connect(function(player)
  239.         drawBoxOnPlayer(player)
  240.     end)
  241. end
  242.  
  243. -- Mine ESP
  244. local function drawBoxOnPart(part)
  245.     local box = Drawing.new("Square")
  246.     box.Visible = false
  247.     box.Thickness = 1
  248.     box.Transparency = 1
  249.     box.Filled = false
  250.     local connection
  251.     connection = RunService.RenderStepped:Connect(function()
  252.         box.Visible = false
  253.         if part == nil or part.Parent == nil then
  254.             connection:Disconnect()
  255.             box:Remove()
  256.             return
  257.         end
  258.         if not part:IsDescendantOf(workspace) then
  259.             return
  260.         end
  261.  
  262.         local position, on_screen = player_data["camera"]:worldToViewportPoint(part.Position)
  263.    
  264.         if on_screen then
  265.             box.Size = Vector2.new(500 / position.Z, 500 / position.Z)
  266.             box.Position = Vector2.new(position.X - box.Size.X / 2, position.Y - box.Size.Y / 2)
  267.             box.Color = getgenv().mine_esp_color
  268.             box.Visible = getgenv().mine_esp
  269.         end
  270.     end)
  271. end
  272.  
  273. local function mineEsp()
  274.     for index, part in pairs(map:GetChildren()) do
  275.         if part.Name == "Static_Landmine" then
  276.             drawBoxOnPart(part)
  277.         end
  278.     end
  279.     map.ChildAdded:Connect(function(part)
  280.         if part.Name == "Static_Landmine" then
  281.             drawBoxOnPart(part)
  282.         end
  283.     end)
  284. end
  285.  
  286. -- Tracers
  287. local function drawLineToPlayer(player)
  288.     local line = Drawing.new("Line")
  289.     line.Visible = true
  290.     line.Transparency = 1
  291.     line.Thickness = 2
  292.     line.Color = getgenv().player_tracers_color
  293.  
  294.     local connection
  295.     connection = RunService.RenderStepped:Connect(function()
  296.         line.Visible = false
  297.         if player == nil then
  298.             line:Remove()
  299.             connection:Disconnect()
  300.             return
  301.         end
  302.  
  303.         if player == player_data["player"] then
  304.             return
  305.         end
  306.  
  307.         if player.TeamColor == player_data["player"].TeamColor then
  308.             return
  309.         end
  310.  
  311.         local character = player.Character
  312.         if character == nil then
  313.             return
  314.         end
  315.  
  316.         local root =  character:FindFirstChild("HumanoidRootPart")
  317.         if root == nil then
  318.             return
  319.         end
  320.  
  321.         if (root.Position - player_data["root"].Position).Magnitude  fov then
  322.             continue
  323.         end
  324.  
  325.         if distance_from_cursor > current_distance_from_cursor and closest_to_cursor then
  326.             continue
  327.         end
  328.  
  329.         local humanoid = character:FindFirstChild("Humanoid")
  330.  
  331.         if humanoid == nil or humanoid:GetState() == Enum.HumanoidStateType.Dead or humanoid.Health